eric6/MicroPython/MicroPythonDevices.py

changeset 7592
f79dc58bdf62
parent 7588
881eebfefd34
child 7597
9dac5ef0126d
diff -r 16730b2c480c -r f79dc58bdf62 eric6/MicroPython/MicroPythonDevices.py
--- a/eric6/MicroPython/MicroPythonDevices.py	Sat May 09 12:56:17 2020 +0200
+++ b/eric6/MicroPython/MicroPythonDevices.py	Mon May 11 18:30:25 2020 +0200
@@ -95,9 +95,10 @@
     
     @return tuple containing a list of tuples with the board type, a
         description and the serial port it is connected at for known device
-        types and a list of tuples with VID and PID for unknown devices
+        types and a list of tuples with VID, PID and description for unknown
+        devices
     @rtype tuple of (list of tuples of (str, str, str), list of tuples of
-        (str, str)
+        (int, int, str)
     """
     from PyQt5.QtSerialPort import QSerialPortInfo
     
@@ -118,9 +119,9 @@
                 supported = True
         if not supported:
             if vid and pid:
-                unknownDevices.append(("VID: {0:04x}".format(vid),
-                                       "PID: {0:04x}".format(pid)))
-                logging.debug("Unknown device: (0x%04x:0x%04x)", vid, pid)
+                unknownDevices.append((vid, pid, port.description()))
+                logging.debug("Unknown device: (0x%04x:0x%04x %s)",
+                              vid, pid, port.description())
     
     return foundDevices, unknownDevices
 

eric ide

mercurial