From e2eeeb9e4082a3c6b0dc901983ed9abecbd012b0 Mon Sep 17 00:00:00 2001 From: brentru Date: Fri, 20 Oct 2023 11:56:21 -0400 Subject: [PATCH] uint match warn --- utility/WatchdogESP32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utility/WatchdogESP32.cpp b/utility/WatchdogESP32.cpp index 2fd7565..2b983eb 100644 --- a/utility/WatchdogESP32.cpp +++ b/utility/WatchdogESP32.cpp @@ -19,7 +19,7 @@ int WatchdogESP32::enable(int maxPeriodMS) { #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 1, 1) // Initialize the wdt configuration for ESP-IDF v5.x and above esp_task_wdt_config_t wdt_config = { - .timeout_ms = maxPeriodMS, + .timeout_ms = (uint32_t)maxPeriodMS, .idle_core_mask = 0, // Subscribe to the idle task on the APP CPU .trigger_panic = true, };