mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 17:25:18 +03:00
Add 'noreboot' option to defaults command; Use the noreboot option in diff command
This commit is contained in:
parent
013ea05bcf
commit
17fe20b219
1 changed files with 8 additions and 4 deletions
|
@ -3083,7 +3083,9 @@ static void cliDefaults(char *cmdline)
|
|||
|
||||
cliPrint("Resetting to defaults");
|
||||
resetEEPROM();
|
||||
cliReboot();
|
||||
|
||||
if (!checkCommand(cmdline, "noreboot"))
|
||||
cliReboot();
|
||||
}
|
||||
|
||||
static void cliGet(char *cmdline)
|
||||
|
@ -3426,11 +3428,13 @@ static void printConfig(const char *cmdline, bool doDiff)
|
|||
cliPrintHashLine("version");
|
||||
cliVersion(NULL);
|
||||
|
||||
#ifndef CLI_MINIMAL_VERBOSITY
|
||||
if ((dumpMask & (DUMP_ALL | DO_DIFF)) == (DUMP_ALL | DO_DIFF)) {
|
||||
cliPrintHashLine("reset configuration to default settings\r\ndefaults");
|
||||
}
|
||||
#ifndef CLI_MINIMAL_VERBOSITY
|
||||
cliPrintHashLine("reset configuration to default settings\r\ndefaults noreboot");
|
||||
#else
|
||||
cliPrintf("defaults noreboot\r\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
cliPrintHashLine("resources");
|
||||
//printResource(dumpMask, &defaultConfig);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue