Fixed cliAux acknowledge to show permanentId's

This commit is contained in:
Dave Huber 2019-02-17 01:06:06 -06:00
parent da7608f513
commit e11d113653
1 changed files with 3 additions and 2 deletions

View File

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