Merge pull request #6 from SnorreSelmer/storm_warning

Storm warning
This commit is contained in:
Snorre Selmer
2021-09-04 13:49:50 +02:00
committed by GitHub
+2
View File
@@ -17,12 +17,14 @@ s announcer Mode 18 # "Storm Incoming!"
s siren Mode 10 # nice siren sound
start:
yield
l storm_mode weather Mode # check weather
s announcer On 0 # reset announcer
beq storm_mode 1 countdown # countdown if incoming
j start # else return to start
countdown:
yield
l storm_mode weather Mode # check weather
s announcer On 1 # announce storm
# get countdown value