MicroPythonDevices: added a list of device to be ignored by default.

Fri, 16 Oct 2020 17:18:23 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 16 Oct 2020 17:18:23 +0200
changeset 7787
9ede0dcfc2ac
parent 7786
dd4a55fedea9
child 7788
604a28a7767b

MicroPythonDevices: added a list of device to be ignored by default.

eric6/MicroPython/MicroPythonDevices.py file | annotate | diff | comparison | revisions
--- a/eric6/MicroPython/MicroPythonDevices.py	Thu Oct 15 19:16:14 2020 +0200
+++ b/eric6/MicroPython/MicroPythonDevices.py	Fri Oct 16 17:18:23 2020 +0200
@@ -73,6 +73,10 @@
     },
 }
 
+IgnoredBoards = (
+    (0x8086, 0x9c3d),
+)
+
 
 def getSupportedDevices():
     """
@@ -117,7 +121,7 @@
                      port.portName()))
                 supported = True
         if not supported:
-            if vid and pid:
+            if vid and pid and (vid, pid) not in IgnoredBoards:
                 unknownDevices.append((vid, pid, port.description()))
                 logging.debug("Unknown device: (0x%04x:0x%04x %s)",
                               vid, pid, port.description())

eric ide

mercurial