From 0f4f49b64ecf72094e77414e4dbda8ccbdf6dccd Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Sat, 20 Feb 2016 13:44:09 +0100 Subject: [PATCH] [CLI] reboot command added --- radio/src/cli.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/radio/src/cli.cpp b/radio/src/cli.cpp index 73de8c35d..c8df3e8a4 100644 --- a/radio/src/cli.cpp +++ b/radio/src/cli.cpp @@ -156,6 +156,14 @@ int cliStackInfo(const char ** argv) return 0; } +int cliReboot(const char ** argv) +{ +#if !defined(SIMU) + NVIC_SystemReset(); +#endif + return 0; +} + #if defined(PCBFLAMENCO) int cliReadBQ24195(const char ** argv) { @@ -372,6 +380,7 @@ const CliCommand cliCommands[] = { { "ls", cliLs, "" }, { "play", cliPlay, "" }, { "print", cliDisplay, "
[] | " }, + { "reboot", cliReboot, "" }, { "set", cliSet, " " }, { "stackinfo", cliStackInfo, "" }, { "trace", cliTrace, "on | off" },