From c555ad94f0ae78d6ba53c1c7b9559c83915fbd73 Mon Sep 17 00:00:00 2001 From: Matthias Blankertz Date: Sat, 20 Dec 2025 22:30:55 +0100 Subject: [PATCH] fix: Increase watchdog timeout Workaround for #60 until it is fixed. Signed-off-by: Matthias Blankertz --- software/src/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/software/src/main.py b/software/src/main.py index 09afe34..e1e7b15 100644 --- a/software/src/main.py +++ b/software/src/main.py @@ -58,7 +58,7 @@ async def wdt_task(wdt): # TODO: more checking of app health # Right now this only protects against the asyncio executor crashing completely while True: - await asyncio.sleep_ms(500) + await asyncio.sleep_ms(100) wdt.feed() DB_PATH = '/sd/tonberry.db' @@ -105,7 +105,7 @@ def run(): start_webserver(config, the_app) # Start - wdt = machine.WDT(timeout=1000) + wdt = machine.WDT(timeout=2000) asyncio.create_task(aiorepl.task({'timer_manager': TimerManager(), 'app': the_app})) asyncio.create_task(wdt_task(wdt))