1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-20 23:05:12 +03:00

[CLI] reboot command added

This commit is contained in:
Bertrand Songis 2016-02-20 13:44:09 +01:00
parent 84bf31f908
commit 0f4f49b64e

View file

@ -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, "<directory>" },
{ "play", cliPlay, "<filename>" },
{ "print", cliDisplay, "<address> [<size>] | <what>" },
{ "reboot", cliReboot, "" },
{ "set", cliSet, "<what> <value>" },
{ "stackinfo", cliStackInfo, "" },
{ "trace", cliTrace, "on | off" },