1
0
Fork 0
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:
Konstantin Sharlaimov (DigitalEntity) 2017-03-27 21:06:22 +10:00
parent 013ea05bcf
commit 17fe20b219

View file

@ -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);