This commit is contained in:
Mit4el
2024-11-20 00:22:55 +03:00
parent cfe1f04bdd
commit 8136d47cbd
2 changed files with 3 additions and 3 deletions

View File

@@ -295,7 +295,7 @@ extern "C" void __wrap_esp_panic_handler(void *info)
#include <esp_task_wdt.h> #include <esp_task_wdt.h>
// 3 seconds WDT, reset in 1 seconds // 3 seconds WDT, reset in 1 seconds
#define WDT_TIMEOUT 10 #define WDT_TIMEOUT 180
void startWatchDog() void startWatchDog()
{ {

View File

@@ -110,7 +110,7 @@ void setup() {
#endif // RESTART_DEBUG_INFO #endif // RESTART_DEBUG_INFO
// Печать или оправка отладочной информации // Печать или оправка отладочной информации
printDebugTrace(); printDebugTrace();
startWatchDog(); //startWatchDog();
Serial.println(); Serial.println();
Serial.println(F("--------------started----------------")); Serial.println(F("--------------started----------------"));
@@ -236,7 +236,7 @@ void setup() {
TIMES, 1000, [&](void *) { TIMES, 1000, [&](void *) {
// сброс WDT // сброс WDT
#if defined(ESP32) #if defined(ESP32)
SerialPrint("i", "Task", "reset wdt"); //SerialPrint("i", "Task", "reset wdt");
esp_task_wdt_reset(); esp_task_wdt_reset();
#endif #endif
// сохраняем значения IoTItems в файл каждую секунду, если были изменения (установлены маркеры на сохранение) // сохраняем значения IoTItems в файл каждую секунду, если были изменения (установлены маркеры на сохранение)