From 9aa5a6d7fb8cfe60ec79b40269b1d27e906eb812 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Tue, 13 Feb 2024 14:54:35 +0100 Subject: [PATCH] Fix compilation --- tasmota/tasmota_xdrv_driver/xdrv_87_esp32_sonoff_tm1621.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_87_esp32_sonoff_tm1621.ino b/tasmota/tasmota_xdrv_driver/xdrv_87_esp32_sonoff_tm1621.ino index b9006c740..368ed1c75 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_87_esp32_sonoff_tm1621.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_87_esp32_sonoff_tm1621.ino @@ -437,6 +437,7 @@ void TM1621Show(void) { return; } +#ifdef USE_ENERGY_SENSOR if (TM1621_POWR316D == Tm1621.device) { if (0 == Tm1621.display_rotate) { ext_snprintf_P(Tm1621.row[0], sizeof(Tm1621.row[0]), PSTR("%1_f"), &Energy->voltage[0]); @@ -452,6 +453,7 @@ void TM1621Show(void) { TM1621SendRows(); return; } +#endif // USE_ENERGY_SENSOR if (TM1621_THR316D == Tm1621.device) { if (!isnan(TasmotaGlobal.temperature_celsius)) {