From aeb965435eb28a8bd9f0f255953901298e249d81 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sat, 7 Dec 2024 18:01:33 +0100 Subject: [PATCH] Fix ESP32 energy export calculation --- tasmota/tasmota_xdrv_driver/xdrv_03_esp32_energy.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_03_esp32_energy.ino b/tasmota/tasmota_xdrv_driver/xdrv_03_esp32_energy.ino index e8ec16a2ba0e..44d6515e34f6 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_03_esp32_energy.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_03_esp32_energy.ino @@ -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; } }