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:
Theo Arends 2023-01-30 15:36:46 +01:00
parent f09a083777
commit d9cbbaeb2a
2 changed files with 7 additions and 6 deletions

View File

@ -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

View File

@ -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;