mirror of
https://github.com/esphome/esphome.git
synced 2026-09-11 15:27:33 +00:00
[ethernet] Fix ETH_SPEED_1000M build on IDF 6.0 (enum added in 6.1) (#17311)
This commit is contained in:
@@ -839,7 +839,7 @@ void EthernetComponent::dump_connect_params_() {
|
||||
case ETH_SPEED_100M:
|
||||
link_speed = 100;
|
||||
break;
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(6, 0, 0)
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(6, 1, 0)
|
||||
case ETH_SPEED_1000M:
|
||||
link_speed = 1000;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user