Fix vTaskDelay syntax error

This commit is contained in:
2025-11-30 23:46:21 +01:00
parent 213f6b399f
commit c6c4011a47
3 changed files with 8 additions and 10 deletions
+2 -2
View File
@@ -8,7 +8,7 @@
#include "main.hpp"
#include "wifi-credentials.h"
#define WIFI_TIMEOUT_TICKS pdMS_TO_TICKS(4500)
#define WIFI_TIMEOUT_MS 4500
static const char* TAG = "WIFI";
@@ -83,6 +83,6 @@ void wifiTask(void *pvParameters) {
for(;;) {
ESP_ERROR_CHECK(esp_task_wdt_reset());
ESP_LOGV(TAG, "Task reset");
vTaskDelay(pdMS_TO_TICKS(WIFI_TIMEOUT_TICKS));
vTaskDelay(pdMS_TO_TICKS(WIFI_TIMEOUT_MS));
}
}