From 05757a503834b429979f26087099af85242df554e194fa06f96c9be2b67e3a62 Mon Sep 17 00:00:00 2001 From: localhorst Date: Sat, 10 Jan 2026 11:45:49 +0100 Subject: [PATCH] Unchecked WiFi API call --- main/metrics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/metrics.c b/main/metrics.c index 2aabf7a..5c10247 100644 --- a/main/metrics.c +++ b/main/metrics.c @@ -301,7 +301,8 @@ void taskMetrics(void *pvParameters) // Wifi RSSI wifi_ap_record_t ap; - esp_wifi_sta_get_ap_info(&ap); + ap.rssi = 0U; + ESP_ERROR_CHECK(esp_wifi_sta_get_ap_info(&ap)); strcpy(aMetrics[u16MetricCounter].caMetricName, "wifi_rssi"); aMetrics[u16MetricCounter].type = INTEGER_64; aMetrics[u16MetricCounter].i64MetricValue = ap.rssi; @@ -314,7 +315,6 @@ void taskMetrics(void *pvParameters) void vSetMetrics(sMetric *paMetrics, uint16_t u16Size) { - if (xSemaphoreTakeRecursive(xMutexAccessMetricResponse, pdMS_TO_TICKS(5000)) == pdTRUE) { memset(caHtmlResponse, 0U, HTML_RESPONSE_SIZE);