diff --git a/src/rtl_433_ESP.cpp b/src/rtl_433_ESP.cpp index b5e62f24..b566d950 100644 --- a/src/rtl_433_ESP.cpp +++ b/src/rtl_433_ESP.cpp @@ -32,7 +32,11 @@ #if defined(RF_MODULE_SCK) && defined(RF_MODULE_MISO) && \ defined(RF_MODULE_MOSI) && defined(RF_MODULE_CS) # include +# if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S3 +SPIClass newSPI(FSPI); +# else SPIClass newSPI(VSPI); +# endif #endif #ifdef RF_SX1276