mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-24 02:10:46 +00:00
Fix automatic TWDT
This commit is contained in:
parent
9d5d0b3623
commit
862bd3eba2
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user