Skip to content

Commit 5bd5334

Browse files
authored
Merge pull request #813 from andrewjw/andrewjw-patch-1
fix: Only set time if the wlan is connected
2 parents 9ddbb17 + 14c7f6c commit 5bd5334

File tree

1 file changed

+1
-1
lines changed
  • micropython/examples/interstate75/75W

1 file changed

+1
-1
lines changed

micropython/examples/interstate75/75W/clock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def sync_time():
129129

130130
redraw_display_if_reqd()
131131

132-
if max_wait > 0:
132+
if wlan.status() == 3:
133133
print("Connected")
134134

135135
try:

0 commit comments

Comments
 (0)