From 7b0ebee2544f88612402a9a156c16e35ae1d293b Mon Sep 17 00:00:00 2001 From: Greg Sandstrom Date: Wed, 2 Aug 2023 15:08:07 -0700 Subject: [PATCH] try to fix issue where buzzer stayed on after stop_blink called by explicitely turning off buzzer and red light when alarm is cleared --- ssa/alarm/alarmist.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ssa/alarm/alarmist.py b/ssa/alarm/alarmist.py index e204dae..f074df0 100644 --- a/ssa/alarm/alarmist.py +++ b/ssa/alarm/alarmist.py @@ -220,7 +220,9 @@ class Alarmist: self.lights.start_blink(0.3, lightstack.Channel.Buzzer) else: self.lights.stop_blink(lightstack.Channel.Red) + self.lights.off(lightstack.Channel.Red) self.lights.stop_blink(lightstack.Channel.Buzzer) + self.lights.off(lightstack.Channel.Buzzer) # clear event flag self.state_update_event.clear() -- 1.9.1