From ed9bd0a083d208129dbc5f95ab8241be54f2e21d Mon Sep 17 00:00:00 2001 From: Erki Date: Sat, 10 Jun 2023 00:05:08 +0300 Subject: [PATCH] Fix inverted nullptr check --- main/app_networking.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/app_networking.cpp b/main/app_networking.cpp index 3f3d563..c13a51a 100644 --- a/main/app_networking.cpp +++ b/main/app_networking.cpp @@ -73,7 +73,7 @@ void setupWifi() QueueHandle_t setupEspNow() { s_esp_now_queue = xQueueCreate(4, sizeof(EspNowEvent)); - ESP_ERROR_CHECK(s_esp_now_queue != nullptr); + ESP_ERROR_CHECK(s_esp_now_queue == nullptr); ESP_ERROR_CHECK(esp_now_init()); // ESP_ERROR_CHECK(esp_now_set_pmk(nullptr));