Fix repeating alerts
This commit is contained in:
parent
3c8c3173e6
commit
a96b847011
1 changed files with 3 additions and 1 deletions
|
@ -253,7 +253,9 @@ class StateMachine {
|
||||||
for (WarnIntervals WI in WarnIntervals.values) {
|
for (WarnIntervals WI in WarnIntervals.values) {
|
||||||
if (WI == WarnIntervals.NONE) continue;
|
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;
|
current = WI;
|
||||||
send = true;
|
send = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue