Commit 7b0ebee2544f88612402a9a156c16e35ae1d293b
1 parent
6cd96adada
Exists in
main
try to fix issue where buzzer stayed on after stop_blink called by explicitely t…
…urning off buzzer and red light when alarm is cleared
Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff
ssa/alarm/alarmist.py
View file @
7b0ebee
... | ... | @@ -220,7 +220,9 @@ |
220 | 220 | self.lights.start_blink(0.3, lightstack.Channel.Buzzer) |
221 | 221 | else: |
222 | 222 | self.lights.stop_blink(lightstack.Channel.Red) |
223 | + self.lights.off(lightstack.Channel.Red) | |
223 | 224 | self.lights.stop_blink(lightstack.Channel.Buzzer) |
225 | + self.lights.off(lightstack.Channel.Buzzer) | |
224 | 226 | |
225 | 227 | # clear event flag |
226 | 228 | self.state_update_event.clear() |