Skip to content

Commit

Permalink
Handle initial connecting state better in OTA
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewWilkes committed Jun 16, 2024
1 parent 7169da8 commit 689add8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/system/ota/ota.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 689add8

Please sign in to comment.