diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-04-25 17:58:37 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-04-25 17:58:37 -0400 |
commit | f82577c56f8525fc56aa6a0b71ec62435a4c13ba (patch) | |
tree | 26aba9d877aa436e4d6138f4c45de4ce21bed7ff /examples/test-session.cpp | |
parent | b00ed99f4d231643d1975c4e90f67d48c1570c19 (diff) | |
download | librambutan-f82577c56f8525fc56aa6a0b71ec62435a4c13ba.tar.gz librambutan-f82577c56f8525fc56aa6a0b71ec62435a4c13ba.zip |
Minor test-session.cpp fixup
Diffstat (limited to 'examples/test-session.cpp')
-rw-r--r-- | examples/test-session.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/test-session.cpp b/examples/test-session.cpp index 01dd184..d97d0ca 100644 --- a/examples/test-session.cpp +++ b/examples/test-session.cpp @@ -356,19 +356,18 @@ void cmd_serial1_echo(void) { "early."); while (!SerialUSB.available()) ; - SerialUSB.read(); + if (SerialUSB.read() == ESC) return; SerialUSB.println("Testing 115200 baud on USART1."); serial_echo_test(&Serial1, 115200); - if (SerialUSB.read() == ESC) return; + if (SerialUSB.read() == ESC) return; SerialUSB.println("Testing 57600 baud on USART1."); serial_echo_test(&Serial1, 57600); - if (SerialUSB.read() == ESC) return; + if (SerialUSB.read() == ESC) return; SerialUSB.println("Testing 9600 baud on USART1."); serial_echo_test(&Serial1, 9600); - if (SerialUSB.read() == ESC) return; } void cmd_gpio_monitoring(void) { |