kopia lustrzana https://github.com/pimoroni/pimoroni-pico
fix: Only set time if the wlan is connected
Previously, if we dropped out of the wlan loop early because of an error (wlan.status() < 0) it would still print "Connected", and try to set the time.pull/813/head
rodzic
d93839d56a
commit
14c7f6c9c8
|
@ -129,7 +129,7 @@ def sync_time():
|
|||
|
||||
redraw_display_if_reqd()
|
||||
|
||||
if max_wait > 0:
|
||||
if wlan.status() == 3:
|
||||
print("Connected")
|
||||
|
||||
try:
|
||||
|
|
Ładowanie…
Reference in New Issue