#174 fixed sounder not resuming on supervisor reconnect with same alarm states

This commit is contained in:
Mikayla Fischler
2023-02-25 12:20:03 -05:00
parent 6eee0d0c72
commit 7508acb1a7
2 changed files with 8 additions and 3 deletions

View File

@@ -296,6 +296,9 @@ end
function sounder.reconnect(speaker)
alarm_ctl.speaker = speaker
alarm_ctl.playing = false
alarm_ctl.next_block = 1
alarm_ctl.num_active = 0
for id = 1, #TONES do TONES[id].active = false end
end
-- check alarm state to enable/disable alarms