mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-22 21:36:11 +02:00
0.7.38
* reset alarms at midnight (if inverter is not available) #1105, #1096 * add option to reset 'max' values on midnight #1102 * added default pins for CMT2300A (matching OpenDTU)
This commit is contained in:
parent
3074b8ca4c
commit
b01fbe205e
9 changed files with 63 additions and 16 deletions
|
@ -556,6 +556,12 @@ class Inverter {
|
|||
}
|
||||
}
|
||||
|
||||
void resetAlarms() {
|
||||
lastAlarm.fill({0, 0, 0});
|
||||
alarmNxtWrPos = 0;
|
||||
alarmCnt = 0;
|
||||
}
|
||||
|
||||
uint16_t parseAlarmLog(uint8_t id, uint8_t pyld[], uint8_t len) {
|
||||
uint8_t startOff = 2 + id * ALARM_LOG_ENTRY_SIZE;
|
||||
if((startOff + ALARM_LOG_ENTRY_SIZE) > len)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue