Skip to content

Commit

Permalink
Fix ESP32 energy export calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
arendst committed Dec 7, 2024
1 parent 7df2c70 commit aeb9654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasmota/tasmota_xdrv_driver/xdrv_03_esp32_energy.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit aeb9654

Please sign in to comment.