esp-netif: Fix compilation if ESP_GRATUITOUS_ARP not enabled

Closes https://github.com/espressif/esp-idf/issues/5294
This commit is contained in:
David Cermak
2020-05-18 21:44:57 +02:00
committed by bot
parent 183dddd50e
commit 1183b95cc4

View File

@@ -614,7 +614,7 @@ static esp_err_t esp_netif_start_api(esp_netif_api_msg_t *msg)
#if ESP_GRATUITOUS_ARP #if ESP_GRATUITOUS_ARP
netif_set_garp_flag(esp_netif->lwip_netif); netif_set_garp_flag(esp_netif->lwip_netif);
#else #else
ESP_LOGW(TAG,"CONFIG_LWIP_ESP_GRATUITOUS_ARP not enabled, but esp-netif configured woth ESP_NETIF_FLAG_GARP") ESP_LOGW(TAG,"CONFIG_LWIP_ESP_GRATUITOUS_ARP not enabled, but esp-netif configured with ESP_NETIF_FLAG_GARP");
#endif #endif
} }
struct netif *p_netif = esp_netif->lwip_netif; struct netif *p_netif = esp_netif->lwip_netif;