Increase serial watchdog timeout

This prevents the watchdog from kicking in while configuration is stored to
slow EEPROM integrated in STM32L072 MCUs.
This commit is contained in:
Martin Jäger
2020-08-17 19:58:51 +02:00
parent 445359c3b5
commit 176af4188f
+3 -1
View File
@@ -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);