From efe8042fbed4fd248b8f1338b9ad424f2e28bb9f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 29 Apr 2021 14:44:26 +1000 Subject: [PATCH] AP_Periph: allow for reboot while in DNA --- Tools/AP_Periph/can.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tools/AP_Periph/can.cpp b/Tools/AP_Periph/can.cpp index 531a0d228d..c38b8fb4a9 100644 --- a/Tools/AP_Periph/can.cpp +++ b/Tools/AP_Periph/can.cpp @@ -1182,6 +1182,10 @@ static void can_wait_node_id(void) led_idx = (led_idx+1) % 32; last_led_change = now; } + +#ifdef HAL_PERIPH_LISTEN_FOR_SERIAL_UART_REBOOT_CMD_PORT + periph.check_for_serial_reboot_cmd(HAL_PERIPH_LISTEN_FOR_SERIAL_UART_REBOOT_CMD_PORT); +#endif }