Fix repeating alerts

This commit is contained in:
zontreck 2024-06-09 13:52:56 -07:00
parent 3c8c3173e6
commit a96b847011

View file

@ -253,7 +253,9 @@ class StateMachine {
for (WarnIntervals WI in WarnIntervals.values) {
if (WI == WarnIntervals.NONE) continue;
if (WI.seconds >= sec && WI.seconds <= current.seconds) {
if (WI.seconds >= sec &&
WI.seconds <= current.seconds &&
WI != current) {
current = WI;
send = true;