From 9fd0abf44932fbf08654905ac91f68548a1d4c0f Mon Sep 17 00:00:00 2001 From: Fernando Trias Date: Wed, 10 Jun 2020 11:06:10 -0400 Subject: [PATCH] Add R messages --- gdbstubs.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gdbstubs.cpp b/gdbstubs.cpp index 24fea89..6851d96 100644 --- a/gdbstubs.cpp +++ b/gdbstubs.cpp @@ -492,6 +492,13 @@ int process_F(const char *cmd, char *result) { return 0; } +int process_R(const char *cmd, char *result) { + // _reboot_Teensyduino_(); + // _restart_Teensyduino_(); + strcpy(result, ""); + return 0; +} + /** * @brief Process a command by calling appropriate delegation function * @@ -508,6 +515,8 @@ int processCommand(const char *cmd, char *result) { case 'c': return process_c(cmd, result); case 's': return process_s(cmd, result); case 'F': return process_F(cmd, result); + case 'R': return process_R(cmd, result); + case 'r': return process_R(cmd, result); case '?': return process_question(cmd, result); // case 'B': return process_B(cmd, result);