Unchecked xEventGroupCreate
This commit is contained in:
@ -28,6 +28,12 @@ static void event_handler(void *arg, esp_event_base_t event_base,
|
||||
void initWifi(void)
|
||||
{
|
||||
s_wifi_event_group = xEventGroupCreate();
|
||||
if (s_wifi_event_group == NULL)
|
||||
{
|
||||
ESP_LOGE(TAG, "xEventGroupCreate() failed!");
|
||||
return;
|
||||
}
|
||||
|
||||
ESP_ERROR_CHECK(esp_netif_init());
|
||||
ESP_ERROR_CHECK(esp_event_loop_create_default());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user