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

This commit is contained in:
lhy authored and GitHub committed 2024-07-03 20:03:54 +12:00
1 parent 3fb9c93a24
commit ee6f2bfecb
1 file changed
+2 -1
@@ -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;