Skip to content

Commit

Permalink
omit the port name SLAB_USBtoUART
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonWong08 committed Oct 9, 2023
1 parent 5e72e5a commit 28fdd5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions serialMaster/ardSerial.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,8 @@ def deleteDuplicatedUsbSerial(list):
for name in list:
if serialNumber in name and 'wch' in name: # remove the "wch" device
list.remove(name)
elif 'cu.SLAB_USBtoUART' in item:
list.remove(item)
return list

def testPort(PortList, serialObject, p):
Expand Down Expand Up @@ -636,8 +638,6 @@ def keepCheckingPort(portList, cond1=None, check=True, updateFunc = lambda:None)
for p in newPort:
logger.debug(f"Adding serial port: {p}")
portName = p.split('/')[-1]
if platform.system() == "Darwin" and "SLAB_USBtoUART" in portName:
continue
portStrList.insert(0, portName) # remove '/dev/' in the port name
tk.messagebox.showinfo(title=txt('Info'), message=txt('New port prompt') + portName)
updateFunc()
Expand Down

0 comments on commit 28fdd5b

Please sign in to comment.