From 540b3c307b403237983ff74c3abb760050fb6ea3 Mon Sep 17 00:00:00 2001 From: Adrian Scillato <35405447+ascillato@users.noreply.github.com> Date: Fri, 29 Jan 2021 21:48:47 -0300 Subject: [PATCH] In case of lost comms with PZEM, avoid losing Today Energy --- tasmota/xdrv_03_energy.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xdrv_03_energy.ino b/tasmota/xdrv_03_energy.ino index 63369ac7d..f253838aa 100644 --- a/tasmota/xdrv_03_energy.ino +++ b/tasmota/xdrv_03_energy.ino @@ -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);