In case of lost comms with PZEM, avoid losing Today Energy

This commit is contained in:
Adrian Scillato 2021-01-29 21:48:47 -03:00 committed by GitHub
parent 12f73474ba
commit 540b3c307b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);