From e77154f406d6a2e8f898463a370eb960a2491193 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sat, 28 Jan 2023 11:03:14 +0100 Subject: [PATCH] Enable ESP32 energy driver --- tasmota/tasmota_xdrv_driver/xdrv_03_energy.ino | 4 ++-- tasmota/tasmota_xdrv_driver/xdrv_03_esp32_energy.ino | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_03_energy.ino b/tasmota/tasmota_xdrv_driver/xdrv_03_energy.ino index 8da08b594..2059b51dc 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_03_energy.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_03_energy.ino @@ -17,11 +17,11 @@ along with this program. If not, see . */ -//#ifdef ESP8266 +#ifdef ESP8266 #ifdef USE_ENERGY_SENSOR #define USE_ENERGY_SENSOR_LEGACY #endif // USE_ENERGY_SENSOR -//#endif // ESP8266 +#endif // ESP8266 #ifdef USE_ENERGY_SENSOR_LEGACY /*********************************************************************************************\ diff --git a/tasmota/tasmota_xdrv_driver/xdrv_03_esp32_energy.ino b/tasmota/tasmota_xdrv_driver/xdrv_03_esp32_energy.ino index 6c22e1fda..18098fb01 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_03_esp32_energy.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_03_esp32_energy.ino @@ -19,7 +19,7 @@ #ifdef ESP32 #ifdef USE_ENERGY_SENSOR -//#define USE_ENERGY_SENSOR_ESP32 +#define USE_ENERGY_SENSOR_ESP32 #endif // USE_ENERGY_SENSOR #endif // ESP32