eric7/MicroPython/MicroPythonDevices.py

branch
eric7
changeset 8762
49d93d0069af
parent 8508
fbd629e65477
child 8881
54e42bc2437a
equal deleted inserted replaced
8761:f05818ae6431 8762:49d93d0069af
179 }, 179 },
180 } 180 }
181 181
182 IgnoredBoards = ( 182 IgnoredBoards = (
183 (0x8086, 0x9c3d), 183 (0x8086, 0x9c3d),
184 (0x8086, None),
184 ) 185 )
185 186
186 187
187 def getSupportedDevices(): 188 def getSupportedDevices():
188 """ 189 """
262 pid, 263 pid,
263 )) 264 ))
264 supported = True 265 supported = True
265 if not supported: 266 if not supported:
266 if vid and pid: 267 if vid and pid:
267 if (vid, pid) not in IgnoredBoards: 268 if (
269 (vid, pid) not in IgnoredBoards and
270 (vid, None) not in IgnoredBoards
271 ):
268 unknownDevices.append((vid, pid, port.description())) 272 unknownDevices.append((vid, pid, port.description()))
269 logging.debug("Unknown device: (0x%04x:0x%04x %s)", 273 logging.debug("Unknown device: (0x%04x:0x%04x %s)",
270 vid, pid, port.description()) 274 vid, pid, port.description())
271 else: 275 else:
272 # either VID or PID or both not detected 276 # either VID or PID or both not detected

eric ide

mercurial