Fix compile error

This commit is contained in:
Theo Arends 2023-11-24 17:20:21 +01:00
parent 01e51b2c9d
commit 22f50abf22

View File

@ -730,7 +730,7 @@ void Ade7953DrvInit(void) {
} }
} }
#ifdef USE_ESP32_SPI #ifdef USE_ESP32_SPI
#ifdef USE_SHELLY_PRO #if (defined(USE_SHELLY_PRO) && defined(USE_MCP23XXX_DRV)) || defined(USE_SHELLY_PRO_V2)
if (Ade7953.model == ADE7953_SHELLY_PRO_4PM) { if (Ade7953.model == ADE7953_SHELLY_PRO_4PM) {
ShellyPro4Reset(); ShellyPro4Reset();
} }