Fixed an issue in the CircuitPython device class related to ethernet enabled devices. eric7

Tue, 06 May 2025 11:07:12 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 06 May 2025 11:07:12 +0200
branch
eric7
changeset 11267
9fc085d7e4fd
parent 11266
97311a9616e3
child 11268
3dba24293ccc

Fixed an issue in the CircuitPython device class related to ethernet enabled devices.

src/eric7/MicroPython/Devices/CircuitPythonDevices.py file | annotate | diff | comparison | revisions
--- 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