src/eric7/MicroPython/Devices/MCUScripts/picoWiznetConnect.py

branch
eric7
changeset 11270
0e220c26e60e
parent 10153
ffe7432f716b
--- a/src/eric7/MicroPython/Devices/MCUScripts/picoWiznetConnect.py	Tue May 06 11:09:21 2025 +0200
+++ b/src/eric7/MicroPython/Devices/MCUScripts/picoWiznetConnect.py	Tue May 06 15:32:29 2025 +0200
@@ -26,9 +26,7 @@
         nic.active(True)
         nic.ifconfig(ifconfig)
         max_wait = 140
-        while max_wait:
-            if nic.isconnected():
-                break
+        while max_wait and not nic.isconnected():
             max_wait -= 1
             time.sleep(0.1)
 

eric ide

mercurial