Fix ESP32 energy export calculation

This commit is contained in:
Theo Arends 2024-12-07 18:01:33 +01:00
parent 7df2c703a1
commit aeb965435e
1 changed files with 1 additions and 1 deletions

View File

@ -547,7 +547,7 @@ void EnergyUpdateToday(void) {
Energy->kWhtoday[i] += delta;
}
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;
}
}