From 62a302c54b4b2059267aab98a7d4519d539c8603 Mon Sep 17 00:00:00 2001 From: zontreck Date: Sun, 9 Jun 2024 19:04:06 -0700 Subject: [PATCH] Attempt again to fix no warnings --- lib/statemachine.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/statemachine.dart b/lib/statemachine.dart index 43ebff5..a07fab2 100644 --- a/lib/statemachine.dart +++ b/lib/statemachine.dart @@ -254,7 +254,8 @@ class StateMachine { if (WI == WarnIntervals.NONE) continue; if (WI.seconds >= sec && - WI.seconds <= current.seconds && + (current == WarnIntervals.NONE || + WI.seconds <= current.seconds) && WI != current) { current = WI; send = true;