mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-29 00:36:11 +02:00
0.8.129
* sort alarms ascending #1471 * fix alarm counter for first alarm * prevent add inverter multiple times #1700
This commit is contained in:
parent
dcb4b49fa0
commit
3c0c8eece3
4 changed files with 37 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue