mirror of
https://github.com/esphome/esphome.git
synced 2026-09-15 17:18:40 +00:00
[ethernet] Keep CONFIG_ETH_SPI_ETHERNET_* in defines.h for static analysis
On IDF 5.x, the ESP-IDF headers use CONFIG_ETH_SPI_ETHERNET_W5500 and CONFIG_ETH_SPI_ETHERNET_DM9051 to conditionally expose the W5500/DM9051 types. Static analysis (clang-tidy) needs both the new USE_ETHERNET_* defines and the old CONFIG_* defines to resolve all symbols.
This commit is contained in:
@@ -283,6 +283,8 @@
|
||||
#define USE_ETHERNET_OPENETH
|
||||
#define USE_ETHERNET_W5500
|
||||
#define USE_ETHERNET_DM9051
|
||||
#define CONFIG_ETH_SPI_ETHERNET_W5500 1
|
||||
#define CONFIG_ETH_SPI_ETHERNET_DM9051 1
|
||||
#define CONFIG_ETH_USE_ESP32_EMAC 1
|
||||
#define USE_ETHERNET_MANUAL_IP
|
||||
#define USE_ETHERNET_IP_STATE_LISTENERS
|
||||
|
||||
Reference in New Issue
Block a user