Fix compile errors on ESP32-C6 with W5500 SPI ethernet (#7030)

This commit is contained in:
lhy 2024-07-03 17:03:54 +09:00 committed by GitHub
parent 3fb9c93a24
commit ee6f2bfecb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;