From 176af4188f4e30af32fd2ebdc8ff97595c516ac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20J=C3=A4ger?= Date: Fri, 31 Jul 2020 14:37:50 +0200 Subject: [PATCH] Increase serial watchdog timeout This prevents the watchdog from kicking in while configuration is stored to slow EEPROM integrated in STM32L072 MCUs. --- src/ext/serial.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ext/serial.cpp b/src/ext/serial.cpp index 5e87988..a093dfb 100644 --- a/src/ext/serial.cpp +++ b/src/ext/serial.cpp @@ -105,7 +105,9 @@ void process_input(void* user_data) void serial_thread() { uint32_t last_call = 0; - int wdt_channel = watchdog_register(50); + + // long watchdog timeout needed for ThingSet conf calls which write to slow EEPROM + int wdt_channel = watchdog_register(500); uart_irq_callback_user_data_set(uart_dev, process_input, NULL); uart_irq_rx_enable(uart_dev);