mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 11:16:34 +00:00
Fix duplicate EnergyTotal update
This commit is contained in:
parent
ca3045f68f
commit
8e820e90c6
@ -1616,17 +1616,21 @@ void SettingsDelta(void) {
|
||||
}
|
||||
if (Settings->version < 0x0C030103) { // 12.3.1.3
|
||||
for (uint32_t i = 0; i < 3; i++) {
|
||||
RtcSettings.energy_kWhtotal_ph[i] /= 100;
|
||||
Settings->energy_kWhtotal_ph[i] /= 100;
|
||||
RtcSettings.energy_kWhexport_ph[i] /= 100;
|
||||
Settings->energy_kWhexport_ph[i] /= 100;
|
||||
#ifndef FIRMWARE_MINIMAL
|
||||
RtcSettings.energy_kWhtotal_ph[i] /= 100;
|
||||
RtcSettings.energy_kWhexport_ph[i] /= 100;
|
||||
#endif
|
||||
}
|
||||
#ifndef FIRMWARE_MINIMAL
|
||||
RtcSettings.energy_usage.usage1_kWhtotal /= 100;
|
||||
RtcSettings.energy_usage.usage2_kWhtotal /= 100;
|
||||
RtcSettings.energy_usage.return1_kWhtotal /= 100;
|
||||
RtcSettings.energy_usage.return2_kWhtotal /= 100;
|
||||
RtcSettings.energy_usage.last_return_kWhtotal /= 100;
|
||||
RtcSettings.energy_usage.last_usage_kWhtotal /= 100;
|
||||
#endif
|
||||
}
|
||||
|
||||
Settings->version = VERSION;
|
||||
|
Loading…
x
Reference in New Issue
Block a user