Fix compilation

This commit is contained in:
Theo Arends 2024-02-13 14:54:35 +01:00
parent 04cd8950a3
commit 9aa5a6d7fb
1 changed files with 2 additions and 0 deletions

View File

@ -437,6 +437,7 @@ void TM1621Show(void) {
return; return;
} }
#ifdef USE_ENERGY_SENSOR
if (TM1621_POWR316D == Tm1621.device) { if (TM1621_POWR316D == Tm1621.device) {
if (0 == Tm1621.display_rotate) { if (0 == Tm1621.display_rotate) {
ext_snprintf_P(Tm1621.row[0], sizeof(Tm1621.row[0]), PSTR("%1_f"), &Energy->voltage[0]); ext_snprintf_P(Tm1621.row[0], sizeof(Tm1621.row[0]), PSTR("%1_f"), &Energy->voltage[0]);
@ -452,6 +453,7 @@ void TM1621Show(void) {
TM1621SendRows(); TM1621SendRows();
return; return;
} }
#endif // USE_ENERGY_SENSOR
if (TM1621_THR316D == Tm1621.device) { if (TM1621_THR316D == Tm1621.device) {
if (!isnan(TasmotaGlobal.temperature_celsius)) { if (!isnan(TasmotaGlobal.temperature_celsius)) {