Merge branch 'Bugfix/add_netif_assert_master' into 'master'

fix bug for netif add crash

Closes WIFI-1219

See merge request espressif/esp-idf!6937
This commit is contained in:
Jiang Jiang Jian 2019-12-07 17:33:32 +08:00
commit 3224f24ef6

View File

@ -50,7 +50,7 @@ esp_err_t esp_event_send_legacy(system_event_t *event)
return ESP_ERR_INVALID_STATE;
}
return esp_event_post(SYSTEM_EVENT, event->event_id, event, sizeof(*event), 0);
return esp_event_post(SYSTEM_EVENT, event->event_id, event, sizeof(*event), portMAX_DELAY);
}
esp_err_t esp_event_loop_init(system_event_cb_t cb, void *ctx)