From 14216b3888e159c2a4b11570606665c467eef296 Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Mon, 11 Nov 2019 16:46:59 +0100 Subject: [PATCH] ioc: avr-bootloader: Add Y command to bypass the subsequent device to bypass Note: Uncommented delay loop at beginning because of code size limit. --- doc/ioc.md | 3 ++- ioc/avr-bootloader/main.c | 12 +++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/doc/ioc.md b/doc/ioc.md index eb7af23..f974b51 100644 --- a/doc/ioc.md +++ b/doc/ioc.md @@ -6,6 +6,7 @@ ### Bootloader * The bootloader is a standard Arduino bootloader with the following additions - * Use ASCII command 'X' to enable loop-through mode. Everything received on UART RX will be forwarded to UART TX until the next reset. + * Use ASCII command 'X' to enable byass mode. Everything received on UART RX will be forwarded to UART TX until the next reset. + * Use ASCII command 'Y' to set the next unit in the chain into bypass mode. * Use ASCII command 'Z' to immediately launch into the user firmware * Use the following avrdude command to program: `avrdude -p m8 -P /dev/ttyUSBx -c arduino -b 19200 -U flash:w:$(TARGET).hex` diff --git a/ioc/avr-bootloader/main.c b/ioc/avr-bootloader/main.c index a8d08de..9ce71d4 100644 --- a/ioc/avr-bootloader/main.c +++ b/ioc/avr-bootloader/main.c @@ -133,9 +133,9 @@ int main(void) UCSRB = (1<