Skip to content

Commit

Permalink
Change watchdog time vom 5s to 10s
Browse files Browse the repository at this point in the history
  • Loading branch information
norbert-walter committed Apr 29, 2024
1 parent e7a7d29 commit b5c0090
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions lib/obp60task/obp60task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
//####################################################################################
Expand All @@ -440,7 +439,7 @@ void OBP60Task(GwApi *api){
// Undervoltage detection
if(uvoltage == true){
underVoltageDetection(api);
}
}

if(millis() > starttime0 + 100){
starttime0 = millis();
Expand Down
1 change: 1 addition & 0 deletions lib/obp60task/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b5c0090

Please sign in to comment.