1
0
mirror of https://github.com/esphome/esphome.git synced 2025-07-07 15:43:08 +01:00

Fix ESP32 SPI hardware assignment in Arduino fw ()

This commit is contained in:
Keith Burzinski
2023-04-11 20:38:41 -05:00
committed by GitHub
parent b60c08dd28
commit 3d7d689040

@ -79,7 +79,7 @@ void SPIComponent::setup() {
#if defined(USE_ESP32_VARIANT_ESP32C3) || defined(USE_ESP32_VARIANT_ESP32S2) || defined(USE_ESP32_VARIANT_ESP32S3) #if defined(USE_ESP32_VARIANT_ESP32C3) || defined(USE_ESP32_VARIANT_ESP32S2) || defined(USE_ESP32_VARIANT_ESP32S3)
this->hw_spi_ = new SPIClass(FSPI); // NOLINT(cppcoreguidelines-owning-memory) this->hw_spi_ = new SPIClass(FSPI); // NOLINT(cppcoreguidelines-owning-memory)
#else #else
this->hw_spi_ = new SPIClass(VSPI); // NOLINT(cppcoreguidelines-owning-memory) this->hw_spi_ = new SPIClass(HSPI); // NOLINT(cppcoreguidelines-owning-memory)
#endif // USE_ESP32_VARIANT #endif // USE_ESP32_VARIANT
} }
spi_bus_num++; spi_bus_num++;