* sort alarms ascending #1471
* fix alarm counter for first alarm
* prevent add inverter multiple times #1700
This commit is contained in:
lumapu 2024-07-11 22:20:11 +02:00
parent dcb4b49fa0
commit 3c0c8eece3
4 changed files with 37 additions and 8 deletions

View file

@ -834,7 +834,7 @@ class Inverter {
}
}
if(alarmCnt < 10 && alarmCnt < mAlarmNxtWrPos)
if(alarmCnt < 10 && alarmCnt <= mAlarmNxtWrPos)
alarmCnt = mAlarmNxtWrPos + 1;
lastAlarm[mAlarmNxtWrPos] = alarm_t(code, start, end);