public string ReadPN() { lock (syncRoot) { EnterEngMode(0x00, 0); string pn = ""; pn = EEPROM_SNOEC.ReadPn(DUT_USB_Port, 0xA0, 148); return(pn.Trim()); } }
public string ReadPn() { try { lock (syncRoot) { EnterEngMode(0); string pn = ""; pn = EEPROM_SNOEC.ReadPn(DUT_USB_Port, 0xA0, 168); return(pn.Trim()); } } catch { MessageBox.Show("No link."); return("999"); } }