From e7f8490b751816dac7b207bb6eb7045869510ddc Mon Sep 17 00:00:00 2001 From: Oskar Weigl Date: Thu, 20 Jun 2019 14:53:18 -0700 Subject: [PATCH] Ascii command for reboot changed from sb to sr --- CHANGELOG.md | 3 +++ Firmware/communication/ascii_protocol.cpp | 2 +- docs/ascii-protocol.md | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d49785ba..8c2d89b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ Please add a note of your changes below this heading if you make a Pull Request. ### Added * Check current limit violation: added `ERROR_CURRENT_UNSTABLE`, `motor.config.current_lim_tolerance`. +### Changed +* Ascii command for reboot changed from `sb` to `sr`. + # Releases ## [0.4.10] - 2019-04-24 ### Fixed diff --git a/Firmware/communication/ascii_protocol.cpp b/Firmware/communication/ascii_protocol.cpp index 1e1c9ba4..1cb5f794 100644 --- a/Firmware/communication/ascii_protocol.cpp +++ b/Firmware/communication/ascii_protocol.cpp @@ -210,7 +210,7 @@ void ASCII_protocol_process_line(const uint8_t* buffer, size_t len, StreamSink& save_configuration(); } else if (cmd[1] == 'e'){ // Erase config erase_configuration(); - } else if (cmd[1] == 'b'){ // Reboot + } else if (cmd[1] == 'r'){ // Reboot NVIC_SystemReset(); } diff --git a/docs/ascii-protocol.md b/docs/ascii-protocol.md index db6869a8..a0757e2f 100644 --- a/docs/ascii-protocol.md +++ b/docs/ascii-protocol.md @@ -136,4 +136,4 @@ Not all parameters can be accessed via the ASCII protocol but at least all param #### System commands: * `ss` - Save config * `se` - Erase config -* `sb` - Reboot +* `sr` - Reboot