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

update dump command to show per-profile servo reverse settings. See

#1140.
This commit is contained in:
Dominic Clifton 2015-09-05 18:01:36 +01:00
parent 84ae209c1e
commit df92691410

View file

@ -1477,15 +1477,6 @@ static void cliDump(char *cmdline)
);
}
// print servo directions
for (i = 0; i < MAX_SUPPORTED_SERVOS; i++) {
for (channel = 0; channel < INPUT_SOURCE_COUNT; channel++) {
if (servoDirection(i, channel) < 0) {
printf("smix reverse %d %d r\r\n", i , channel);
}
}
}
#endif
cliPrint("\r\n\r\n# feature\r\n");
@ -1549,6 +1540,16 @@ static void cliDump(char *cmdline)
cliServo("");
// print servo directions
for (i = 0; i < MAX_SUPPORTED_SERVOS; i++) {
for (channel = 0; channel < INPUT_SOURCE_COUNT; channel++) {
if (servoDirection(i, channel) < 0) {
printf("smix reverse %d %d r\r\n", i , channel);
}
}
}
printSectionBreak();
dumpValues(PROFILE_VALUE);