Skip to content

Commit 47c79e8

Browse files
authored
Merge pull request #2481 from adafruit/umbrella_update
updating loop
2 parents cbb0b20 + 7697e57 commit 47c79e8

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)