1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 20:35:33 +03:00

Fixed 'diff commented' CLI command.

This commit is contained in:
Michael Keller 2016-08-11 08:10:30 +12:00
parent 44b075ce35
commit 511117d41c

View file

@ -2305,17 +2305,19 @@ static void printConfig(char *cmdline, bool doDiff)
dumpMask = DUMP_RATES; // only
} else if ((options = checkCommand(cmdline, "all"))) {
dumpMask = DUMP_ALL; // all profiles and rates
} else {
options = cmdline;
}
master_t defaultConfig;
if (doDiff) {
dumpMask = dumpMask | DO_DIFF;
createDefaultConfig(&defaultConfig);
}
if (checkCommand(options, "commented")) {
if (checkCommand(cmdline, "commented")) {
dumpMask = dumpMask | DIFF_COMMENTED; // add unchanged values as comments for diff
}
}
if ((dumpMask & DUMP_MASTER) || (dumpMask & DUMP_ALL)) {
cliPrint("\r\n# version\r\n");