mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 11:46:31 +00:00
In case of lost comms with PZEM, avoid losing Today Energy
This commit is contained in:
parent
12f73474ba
commit
540b3c307b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user