Unchecked WiFi API call
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user