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
+4 -1
View File
@@ -7,7 +7,10 @@
#include "esp_task_wdt.h"
#include "wifi.hpp"
#define WATCHDOG_KEEPALIVE_TICKS pdMS_TO_TICKS(8000)
extern EventGroupHandle_t connectivity_event_group;
extern EventBits_t bits = xEventGroupGetBits(connectivity_event_group);
static const char* TAG = "MAIN";
@@ -24,7 +27,7 @@ static void watchdogTask(void *pvParameters) {
ESP_ERROR_CHECK(esp_task_wdt_add(NULL));
const TickType_t keepAlivePeriod = pdMS_TO_TICKS(8000);
const TickType_t keepAlivePeriod = pdMS_TO_TICKS(WATCHDOG_KEEPALIVE_TICKS);
for(;;) {
if (criticalErrorFlag) {