From 689add8253a089c2313f990f8829f2ca346c2b0e Mon Sep 17 00:00:00 2001 From: Matthew Wilkes Date: Sun, 16 Jun 2024 17:28:15 +0100 Subject: [PATCH] Handle initial connecting state better in OTA --- modules/system/ota/ota.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/system/ota/ota.py b/modules/system/ota/ota.py index 4ecfa98..52a87ca 100644 --- a/modules/system/ota/ota.py +++ b/modules/system/ota/ota.py @@ -82,7 +82,10 @@ async def connect(self, render_update): return if not wifi.status(): - wifi.connect() + try: + wifi.connect() + except OSError: + pass while True: self.status.value = f"Connecting to {ssid}" await render_update()