mirror of https://github.com/arendst/Tasmota.git
Fix energy usage and return migrated too small
Fix energy usage and return migrated too small (/10000) regression from v12.3.1.3
This commit is contained in:
parent
f09a083777
commit
d9cbbaeb2a
|
@ -22,6 +22,7 @@ All notable changes to this project will be documented in this file.
|
|||
- Shelly Pro 1/2 relay click at restart regression from v12.3.1.4
|
||||
- Zigbee extend plug-in modifiers to 16 bits
|
||||
- Broken I2C priority regression from v12.3.1.3 (#17810)
|
||||
- Energy usage and return migrated too small (/10000) regression from v12.3.1.3
|
||||
|
||||
### Removed
|
||||
|
||||
|
|
|
@ -1620,13 +1620,13 @@ void SettingsDelta(void) {
|
|||
Settings->energy_kWhtotal_ph[i] /= 100;
|
||||
RtcSettings.energy_kWhexport_ph[i] /= 100;
|
||||
Settings->energy_kWhexport_ph[i] /= 100;
|
||||
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;
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
Settings->version = VERSION;
|
||||
|
|
Loading…
Reference in New Issue