mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-10 15:04:53 +00:00
esp_netif, examples: esp_netif_init() moved into ESP_ERROR_CHECK()
esp_netif_init() returns standard esp_err_t error code (unlike tcpip_adapter init), so shall be checked for the return value Also to make the initialization code more consistent.
This commit is contained in:
@@ -84,7 +84,7 @@ static void start_softap_provisioning(void)
|
||||
void app_main(void)
|
||||
{
|
||||
/* Initialize networking stack */
|
||||
esp_netif_init();
|
||||
ESP_ERROR_CHECK(esp_netif_init());
|
||||
|
||||
/* Create default event loop needed by the
|
||||
* main app and the provisioning service */
|
||||
|
Reference in New Issue
Block a user