--- 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)