mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-24 23:07:17 +00:00
Fix initial energy setting
This commit is contained in:
parent
276b68aa5a
commit
b237d49ae6
@ -1144,7 +1144,7 @@ void SSPMHandleReceivedData(void) {
|
|||||||
}
|
}
|
||||||
// If received daily energy is below last daily energy then update total energy
|
// If received daily energy is below last daily energy then update total energy
|
||||||
// This happens around midnight in normal situations
|
// This happens around midnight in normal situations
|
||||||
else if (Sspm->energy_today[module][channel] < last_energy_today) {
|
if (Sspm->energy_today[module][channel] < last_energy_today) {
|
||||||
Sspm->Settings.energy_yesterday[module][channel] = last_energy_today; // Daily save
|
Sspm->Settings.energy_yesterday[module][channel] = last_energy_today; // Daily save
|
||||||
Sspm->Settings.energy_total[module][channel] += last_energy_today; // Daily incremental save
|
Sspm->Settings.energy_total[module][channel] += last_energy_today; // Daily incremental save
|
||||||
if (Settings->save_data) {
|
if (Settings->save_data) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user