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:
parent
84bf31f908
commit
0f4f49b64e
1 changed files with 9 additions and 0 deletions
|
@ -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" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue