Fix CSE7766 Sensor invalid energy load steps prevention

fixes PR #5793 solution which can async (load overflow) forever until device restart
This commit is contained in:
Norbert Richter 2019-05-20 08:52:05 +02:00
parent 9c0bd2a665
commit 0e518084d7
1 changed files with 1 additions and 0 deletions

View File

@ -189,6 +189,7 @@ void CseEverySecond(void)
}
else {
AddLog_P(LOG_LEVEL_DEBUG, PSTR("CSE: Load overflow"));
cf_pulses_last_time = CSE_PULSES_NOT_INITIALIZED;
}
EnergyUpdateToday();
}