Attempt again to fix no warnings

This commit is contained in:
zontreck 2024-06-09 19:04:06 -07:00
parent a96b847011
commit 62a302c54b

View file

@ -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;