From b5c0090b1ca26e0832655b42da864e84c8df7d51 Mon Sep 17 00:00:00 2001 From: norbert-walter Date: Mon, 29 Apr 2024 21:18:53 +0200 Subject: [PATCH] Change watchdog time vom 5s to 10s --- lib/obp60task/obp60task.cpp | 3 +-- lib/obp60task/platformio.ini | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/obp60task/obp60task.cpp b/lib/obp60task/obp60task.cpp index 1b2e431a..7938589d 100644 --- a/lib/obp60task/obp60task.cpp +++ b/lib/obp60task/obp60task.cpp @@ -428,7 +428,6 @@ void OBP60Task(GwApi *api){ long starttime3 = millis(); // Display update all 1s long starttime4 = millis(); // Delayed display update after 4s when select a new page long starttime5 = millis(); // Calculate sunrise and sunset all 1s - // Main loop runs with 100ms //#################################################################################### @@ -440,7 +439,7 @@ void OBP60Task(GwApi *api){ // Undervoltage detection if(uvoltage == true){ underVoltageDetection(api); - } + } if(millis() > starttime0 + 100){ starttime0 = millis(); diff --git a/lib/obp60task/platformio.ini b/lib/obp60task/platformio.ini index dca01003..bbc6e6c4 100644 --- a/lib/obp60task/platformio.ini +++ b/lib/obp60task/platformio.ini @@ -41,6 +41,7 @@ build_flags= # -D DISPLAY_GYE042A8 #alternativ E-Ink display from Genyo Optical, R10 2.2 ohm # -D DISPLAY_SE0420NQ04 #alternativ E-Ink display from SID Technology, R10 2.2 ohm ${env.build_flags} +CONFIG_ESP_TASK_WDT_TIMEOUT_S = 10 #Task Watchdog timeout period (seconds) [1...60] 5 default upload_port = /dev/ttyACM0 upload_protocol = esptool upload_speed = 230400