mirror of
https://github.com/esphome/esphome.git
synced 2025-02-21 12:28:17 +00:00
Fix ESP32 SPI hardware assignment in Arduino fw (#4669)
This commit is contained in:
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++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user