mirror of https://github.com/arendst/Tasmota.git
Merge pull request #10756 from ascillato/patch-3
In case of lost comms with PZEM, avoid losing Today Energy
This commit is contained in:
commit
3b425e9f23
|
@ -530,7 +530,7 @@ void EnergyEverySecond(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!data_valid) {
|
if (!data_valid) {
|
||||||
Energy.start_energy = 0;
|
//Energy.start_energy = 0;
|
||||||
AddLog(LOG_LEVEL_DEBUG, PSTR("NRG: Energy reset by " STR(ENERGY_WATCHDOG) " seconds invalid data"));
|
AddLog(LOG_LEVEL_DEBUG, PSTR("NRG: Energy reset by " STR(ENERGY_WATCHDOG) " seconds invalid data"));
|
||||||
|
|
||||||
XnrgCall(FUNC_ENERGY_RESET);
|
XnrgCall(FUNC_ENERGY_RESET);
|
||||||
|
|
Loading…
Reference in New Issue