Parametrize task delay values

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