aboutsummaryrefslogtreecommitdiffstats
path: root/src/generic/serial_irq.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/generic/serial_irq.c')
-rw-r--r--src/generic/serial_irq.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/generic/serial_irq.c b/src/generic/serial_irq.c
index c2b23864..434a98bb 100644
--- a/src/generic/serial_irq.c
+++ b/src/generic/serial_irq.c
@@ -79,6 +79,9 @@ console_task(void)
if (ret > 0)
command_dispatch(receive_buf, pop_count);
if (ret) {
+ if (CONFIG_SERIAL_BOOTLOADER_SIDECHANNEL && ret < 0 && pop_count == 32
+ && !memcmp(receive_buf, " \x1c Request Serial Bootloader!! ~", 32))
+ bootloader_request();
console_pop_input(pop_count);
if (ret > 0)
command_send_ack();