mirror of https://github.com/arendst/Tasmota.git
Fix ESP32 energy export calculation
This commit is contained in:
parent
7df2c703a1
commit
aeb965435e
|
@ -547,7 +547,7 @@ void EnergyUpdateToday(void) {
|
||||||
Energy->kWhtoday[i] += delta;
|
Energy->kWhtoday[i] += delta;
|
||||||
}
|
}
|
||||||
if (delta < 0) { // Export energy
|
if (delta < 0) { // Export energy
|
||||||
RtcEnergySettings.energy_export_kWh[i] += ((float)(delta / 100) *-1) / 1000;
|
RtcEnergySettings.energy_export_kWh[i] += (((float)delta / 100) *-1) / 1000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue