src/eric7/MicroPython/Devices/CircuitPythonDevices.py

branch
eric7
changeset 11267
9fc085d7e4fd
parent 11263
28f0ead11a82
child 11270
0e220c26e60e
diff -r 97311a9616e3 -r 9fc085d7e4fd src/eric7/MicroPython/Devices/CircuitPythonDevices.py
--- a/src/eric7/MicroPython/Devices/CircuitPythonDevices.py	Mon May 05 18:20:18 2025 +0200
+++ b/src/eric7/MicroPython/Devices/CircuitPythonDevices.py	Tue May 06 11:07:12 2025 +0200
@@ -86,6 +86,7 @@
         self.__wiznetVidPid = (
             (0x2E8A, 0x1027),  # WIZnet W5100S-EVB-Pico
             (0x2E8A, 0x1029),  # WIZnet W5500-EVB-Pico
+            (0x2E8A, 0x109E),  # WIZnet W5100S-EVB-Pico2
         )
 
         self.__securityTranslations = {
@@ -137,8 +138,11 @@
 
         if (
             connected
-            and not self._deviceData["ethernet"]
             and self.__vidpid in self.__wiznetVidPid
+            and (
+                "ethernet" not in self._deviceData
+                or ("ethernet" in self._deviceData and not self._deviceData["ethernet"])
+            )
         ):
             with EricOverridenCursor():
                 EricMessageBox.warning(

eric ide

mercurial