mirror of https://github.com/arendst/Tasmota.git
Fixed EnergyTotal divided twice
Fixed EnergyTotal divided twice during minimal upgrade step regression from v12.3.1.3 (#18024)
This commit is contained in:
parent
faa41ea230
commit
29ae903f67
|
@ -22,6 +22,7 @@ All notable changes to this project will be documented in this file.
|
|||
- Undocumented support for non-sequential buttons and switches (#17967)
|
||||
- SR04 driver single pin ultrasonic sensor detection (#17966)
|
||||
- IR panasonic protocol regression from v12.0.2.4 (#18013)
|
||||
- EnergyTotal divided twice during minimal upgrade step regression from v12.3.1.3 (#18024)
|
||||
|
||||
### Removed
|
||||
|
||||
|
|
|
@ -125,3 +125,4 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm
|
|||
- Energytotals cannot be set to negative values [#17965](https://github.com/arendst/Tasmota/issues/17965)
|
||||
- SR04 driver single pin ultrasonic sensor detection [#17966](https://github.com/arendst/Tasmota/issues/17966)
|
||||
- IR panasonic protocol regression from v12.0.2.4 [#18013](https://github.com/arendst/Tasmota/issues/18013)
|
||||
- EnergyTotal divided twice during minimal upgrade step regression from v12.3.1.3 [#18024](https://github.com/arendst/Tasmota/issues/18024)
|
||||
|
|
|
@ -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…
Reference in New Issue