diff --git a/tasmota/xsns_62_esp32_mi.ino b/tasmota/xsns_62_esp32_mi.ino index 8665d6905..b8ec74d0c 100644 --- a/tasmota/xsns_62_esp32_mi.ino +++ b/tasmota/xsns_62_esp32_mi.ino @@ -49,6 +49,7 @@ */ #ifndef USE_BLE_ESP32 #ifdef ESP32 // ESP32 only. Use define USE_HM10 for ESP8266 support +#if CONFIG_IDF_TARGET_ESP32 #ifdef USE_MI_ESP32 @@ -2318,5 +2319,6 @@ bool Xsns62(uint8_t function) return result; } #endif // USE_MI_ESP32 +#endif // CONFIG_IDF_TARGET_ESP32 #endif // ESP32 -#endif // USE_BLE_ESP32 \ No newline at end of file +#endif // USE_BLE_ESP32