src/eric7/MicroPython/Devices/__init__.py

branch
eric7
changeset 9906
39daf45010c8
parent 9901
d1aea8fcba78
child 9922
6a8cc5957928
diff -r 189b7a23c3c6 -r 39daf45010c8 src/eric7/MicroPython/Devices/__init__.py
--- a/src/eric7/MicroPython/Devices/__init__.py	Thu Mar 16 09:20:00 2023 +0100
+++ b/src/eric7/MicroPython/Devices/__init__.py	Thu Mar 16 12:03:23 2023 +0100
@@ -260,10 +260,14 @@
     },
     "generic": {
         # only manually configured devices use this
-        "ids": [],
-        "description": QCoreApplication.translate("MicroPythonDevice", "Generic Board"),
+        "ids": [
+            (0xF055, 0x9802),  # Board in FS mode
+        ],
+        "description": QCoreApplication.translate(
+            "MicroPythonDevice", "Generic MicroPython Board"
+        ),
         "icon": "micropython48",
-        "port_description": "",
+        "port_description": "Board",
         "module": ".GenericMicroPythonDevices",
     },
     "pyboard": {
@@ -290,7 +294,7 @@
             (0x16D0, 0x08C7),  # Pimoroni Tiny 2040 (8MB)
             (0x1B4F, 0x0025),  # SparkFun Thing Plus RP2040
             (0x1B4F, 0x0026),  # SparkFun Pro Micro RP2040
-            (0x2341, 0x025e),  # Arduino Nano RP2040 Connect
+            (0x2341, 0x025E),  # Arduino Nano RP2040 Connect
             (0x239A, 0x80F2),  # Adafruit Feather RP2040
             (0x239A, 0x80F8),  # Adafruit QT Py RP2040
             (0x239A, 0x80FE),  # Adafruit ItsyBitsy RP2040
@@ -384,13 +388,13 @@
                         # both boards have the same VID and PID
                         # try to differentiate based on port description
                         continue
-                    elif board in ("pyboard", "teensy") and (
+                    elif board in ("generic", "pyboard", "teensy") and (
                         not port.description().startswith(
                             SupportedBoards[board]["port_description"]
                         )
                     ):
-                        # both boards have the same VID and PID
-                        # try to differentiate based on port description
+                        # These boards have the same VID and PID.
+                        # Try to differentiate based on port description
                         continue
                     foundDevices.append(
                         (

eric ide

mercurial