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 | bdf325852190f2636f8d8ad5268ea1bcb602a2e0 (patch) | |
| tree | b324ba87f39d11beffd5984023f7354f2cf6de79 /examples | |
| parent | ead6460180b42bdf432a94caed9a1b41760970c0 (diff) | |
Minor test-session.cpp fixup
Diffstat (limited to 'examples')
| -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) { |
