Skip to content
Snippets Groups Projects
Commit af3912aa authored by ave's avatar ave Committed by ave
Browse files

st3m/wifi: don't re-attempt connect on _onoff_wifi_update if already connected

parent 1bb75fcc
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ def is_connected() -> bool:
def _onoff_wifi_update() -> None:
if settings.onoff_wifi.value:
if settings.onoff_wifi.value and not is_connected():
setup_wifi()
else:
disable()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment