From 13171ea3d5a75fb6a119a14becfb81fb2c19f3b1 Mon Sep 17 00:00:00 2001 From: Lucio Tarantino Date: Sun, 17 Dec 2023 16:32:12 +0100 Subject: [PATCH] Add Support for ESP32-C3 e S3 (#124) * Add Support for ESP32-C3 e S3 * Update rtl_433_ESP.cpp --------- Co-authored-by: Northern Man <19808920+NorthernMan54@users.noreply.github.com> --- src/rtl_433_ESP.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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