From eb0b476410bf671d3330b28072f2d94deda72070 Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Thu, 10 Jun 2021 19:55:07 +0200 Subject: [PATCH] Change to SP2_HOST for esp32c3 and avoid duplicate in Tasmota (#481) Co-authored-by: Stephan Hadinger --- src/internal/DotStarEsp32DmaSpiMethod.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internal/DotStarEsp32DmaSpiMethod.h b/src/internal/DotStarEsp32DmaSpiMethod.h index d71cf79..a9d149b 100644 --- a/src/internal/DotStarEsp32DmaSpiMethod.h +++ b/src/internal/DotStarEsp32DmaSpiMethod.h @@ -29,9 +29,9 @@ License along with NeoPixel. If not, see #include "driver/spi_master.h" -#if defined(CONFIG_IDF_TARGET_ESP32C3) +#if defined(CONFIG_IDF_TARGET_ESP32C3) && !defined(HSPI_HOST) // HSPI_HOST depreciated in C3 -#define HSPI_HOST SPI3_HOST +#define HSPI_HOST SPI2_HOST #endif #if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)