1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Merge pull request #7595 from dthubereng/aux_cli_linkedto_fix

Fixed cliAux acknowledge to show permanentId's
This commit is contained in:
Michael Keller 2019-02-19 00:09:14 +13:00 committed by GitHub
commit e5e45faa9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1025,6 +1025,7 @@ static void cliAux(char *cmdline)
}
if (validArgumentCount == 4) { // for backwards compatibility
mac->modeLogic = MODELOGIC_OR;
mac->linkedTo = 0;
} else if (validArgumentCount == 5) { // for backwards compatibility
mac->linkedTo = 0;
} else if (validArgumentCount != 6) {
@ -1033,12 +1034,12 @@ static void cliAux(char *cmdline)
analyzeModeActivationConditions();
cliPrintLinef( "aux %u %u %u %u %u %u %u",
i,
mac->modeId,
findBoxByBoxId(mac->modeId)->permanentId,
mac->auxChannelIndex,
MODE_STEP_TO_CHANNEL_VALUE(mac->range.startStep),
MODE_STEP_TO_CHANNEL_VALUE(mac->range.endStep),
mac->modeLogic,
mac->linkedTo
findBoxByBoxId(mac->linkedTo)->permanentId
);
} else {
cliShowArgumentRangeError("INDEX", 0, MAX_MODE_ACTIVATION_CONDITION_COUNT - 1);