From 862bd3eba29f1a30489f05a5f666790e5f841af8 Mon Sep 17 00:00:00 2001 From: Mikhael Skvortsov Date: Fri, 28 Mar 2025 20:03:34 +0300 Subject: [PATCH] Fix automatic TWDT --- src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 7ec3e6ba1..3c3f41d61 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -41,6 +41,7 @@ #ifdef ARCH_ESP32 #include "driver/gpio.h" +#include "esp_task_wdt.h" #include "freertosinc.h" #if !MESHTASTIC_EXCLUDE_WEBSERVER #include "mesh/http/WebServer.h" @@ -263,6 +264,12 @@ void printInfo() #ifndef PIO_UNIT_TESTING void setup() { +#if defined(ARCH_ESP32) && defined(CONFIG_ESP_TASK_WDT_INIT) + // For now, turn off automatically initialized watchdog. It's going to be re-intitialized + // later in esp32Setup(). Otherwise, fsInit() below may trigger TWDT timeout. + esp_task_wdt_deinit(); +#endif + #if defined(T_DECK) // GPIO10 manages all peripheral power supplies // Turn on peripheral power immediately after MUC starts.