Merge pull request #813 from andrewjw/andrewjw-patch-1
fix: Only set time if the wlan is connected
This commit is contained in:
commit
5bd5334379
|
@ -129,7 +129,7 @@ def sync_time():
|
|||
|
||||
redraw_display_if_reqd()
|
||||
|
||||
if max_wait > 0:
|
||||
if wlan.status() == 3:
|
||||
print("Connected")
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue