From 01e51b2c9d44821188c5d6c09eaff9c4f8b9ff6b Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Fri, 24 Nov 2023 16:49:51 +0100 Subject: [PATCH] Fix undocumented use of Energy struct --- tasmota/tasmota_xdrv_driver/xdrv_03_esp32_energy.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_03_esp32_energy.ino b/tasmota/tasmota_xdrv_driver/xdrv_03_esp32_energy.ino index 66ed9b8b3..a4bb1c615 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_03_esp32_energy.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_03_esp32_energy.ino @@ -1401,8 +1401,8 @@ void EnergyDrvInit(void) { EnergySettingsLoad(0); EnergyRtcSettingsLoad(); AddLog(LOG_LEVEL_INFO, PSTR("NRG: Init driver %d"), TasmotaGlobal.energy_driver); - } else { - free(Energy); // No energy driver found so release memory +// } else { +// free(Energy); // No energy driver found so release memory } }