bugfix/static-code-analysis #28

Merged
localhorst merged 19 commits from bugfix/static-code-analysis into main 2026-02-14 16:21:33 +01:00
Showing only changes of commit 67929580d5 - Show all commits
+6
View File
@@ -28,6 +28,12 @@ static void event_handler(void *arg, esp_event_base_t event_base,
void initWifi(void) void initWifi(void)
{ {
s_wifi_event_group = xEventGroupCreate(); 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_netif_init());
ESP_ERROR_CHECK(esp_event_loop_create_default()); ESP_ERROR_CHECK(esp_event_loop_create_default());