editable serial input line buffer
Dependents: MAX5715BOB_Tester MAX11131BOB_Tester MAX5171BOB_Tester MAX11410BOB_Tester ... more
Diff: CmdLine.cpp
- Revision:
- 14:9abcdf4eb4e4
- Parent:
- 13:abedfe18f924
- Child:
- 15:34b039027e5f
--- a/CmdLine.cpp Mon Apr 06 05:12:27 2020 -0700 +++ b/CmdLine.cpp Fri May 08 05:32:36 2020 +0000 @@ -133,6 +133,12 @@ //case ' ': // on_immediate_0x20(); // Unicode (U+0020) SPACE // break; + // + // Note: these on_immediate case may fall through, by design. +// #if __GNUC__ +// #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" +// #endif +#if 1 case '!': //~ on_immediate_0x21(); // Unicode (U+0021) ! EXCLAMATION MARK //~ break; // handled as immediate command, do not append to buffer @@ -289,6 +295,11 @@ on_immediate_0x7e(); // Unicode (U+007E) ~ TILDE break; // handled as immediate command, do not append to buffer } +#endif +// #if __GNUC__ +// #pragma GCC diagnostic pop +// #endif + // Note: these on_immediate case may fall through, by design. // default: MBED_ASSERT(indexOfNextEmptyCell <= COMMAND_BUFFER_LENGTH - 2);