diff --git a/lib/statemachine.dart b/lib/statemachine.dart index 02c01d5..43ebff5 100644 --- a/lib/statemachine.dart +++ b/lib/statemachine.dart @@ -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;