mirror of
https://github.com/arendst/Tasmota.git
synced 2026-03-15 03:38:12 +01:00
In case of lost comms with PZEM, avoid losing Today Energy
This commit is contained in:
@@ -530,7 +530,7 @@ void EnergyEverySecond(void)
|
||||
}
|
||||
}
|
||||
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"));
|
||||
|
||||
XnrgCall(FUNC_ENERGY_RESET);
|
||||
|
||||
Reference in New Issue
Block a user