espressif / esp-at

AT application for ESP32/ESP32-C2/ESP32-C3/ESP32-C6/ESP8266
Apache License 2.0
911 stars 829 forks source link

fix: Initialise network interface if Ethernet is enabled, but Wi-Fi is not #866

Closed harryg-oss closed 3 weeks ago

harryg-oss commented 3 months ago

LWIP is not initialised when Wi-Fi is not enabled, but Ethernet is. This commit checks if the Ethernet has been enabled with the define CONFIG_AT_ETHERNET_SUPPORT, and if so initialise the network interface.

ustccw commented 3 weeks ago

@harryg-oss Thank you for your pull request. You are correct :+1:! We will merge it into our internal code and automatically synchronize it to GitHub through our CI process.