mirror of
https://github.com/esphome/esphome.git
synced 2024-11-12 10:16:02 +01:00
Fix compile errors on ESP32-C6 with W5500 SPI ethernet (#7030)
This commit is contained in:
parent
3fb9c93a24
commit
ee6f2bfecb
@ -65,7 +65,8 @@ void EthernetComponent::setup() {
|
||||
.intr_flags = 0,
|
||||
};
|
||||
|
||||
#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) || \
|
||||
defined(USE_ESP32_VARIANT_ESP32C6)
|
||||
auto host = SPI2_HOST;
|
||||
#else
|
||||
auto host = SPI3_HOST;
|
||||
|
Loading…
Reference in New Issue
Block a user