Skip to content

Commit 7697e57

Browse files
committed
updating loop
updating loop so that first_run doesn't block turning on the neopixels
1 parent cbb0b20 commit 7697e57

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Weather_Wise_Umbrella_Stand/code.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,9 @@ def rain_check():
120120
color = (0, 0, 0)
121121
if first_run:
122122
first_run = False
123-
else:
124-
pixels.fill(color)
125-
pixels.show()
126-
# reset clock
127-
clock = ticks_add(clock, time_check)
123+
pixels.fill(color)
124+
pixels.show()
125+
# reset clock
126+
clock = ticks_add(clock, time_check)
128127
except Exception as e:
129128
reset_on_error(10, e)

0 commit comments

Comments
 (0)