mirror of https://github.com/arendst/Tasmota.git
Final fix
This commit is contained in:
parent
9f26068b7d
commit
0eb078a5cb
|
@ -205,10 +205,10 @@ void HlwEverySecond(void)
|
|||
unsigned long hlw_len;
|
||||
|
||||
if (Hlw.energy_period_counter) {
|
||||
hlw_len = 10000 * 1000 / Hlw.energy_period_counter; // Add *1000 to fix rounding on loads at 3.6kW (#9160)
|
||||
hlw_len = 10000 * 100 / Hlw.energy_period_counter; // Add *100 to fix rounding on loads at 3.6kW (#9160)
|
||||
Hlw.energy_period_counter = 0;
|
||||
if (hlw_len) {
|
||||
Energy.kWhtoday_delta += (((Hlw.power_ratio * Settings.energy_power_calibration) / 36) * 1000) / hlw_len;
|
||||
Energy.kWhtoday_delta += (((Hlw.power_ratio * Settings.energy_power_calibration) / 36) * 100) / hlw_len;
|
||||
EnergyUpdateToday();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue