mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Fix resource command outputs
This commit is contained in:
parent
bb5314b825
commit
07b1918acd
1 changed files with 6 additions and 6 deletions
|
@ -2780,7 +2780,7 @@ static void printResource(uint8_t dumpMask)
|
|||
const ioTag_t ioTagDefault = *((const ioTag_t *)defaultConfig + resourceTable[i].offset + index);
|
||||
|
||||
bool equalsDefault = ioTag == ioTagDefault;
|
||||
const char *format = "resource %s %d %c%02dn";
|
||||
const char *format = "resource %s %d %c%02d\n";
|
||||
const char *formatUnassigned = "resource %s %d NONE";
|
||||
if (!ioTagDefault) {
|
||||
cliDefaultPrintLinef(dumpMask, equalsDefault, formatUnassigned, owner, RESOURCE_INDEX(index));
|
||||
|
@ -2862,15 +2862,15 @@ static void cliResource(char *cmdline)
|
|||
const char* owner;
|
||||
owner = ownerNames[ioRecs[i].owner];
|
||||
|
||||
cliPrintf("%c%02d: %s ", IO_GPIOPortIdx(ioRecs + i) + 'A', IO_GPIOPinIdx(ioRecs + i), owner);
|
||||
cliPrintf("%c%02d: %s", IO_GPIOPortIdx(ioRecs + i) + 'A', IO_GPIOPinIdx(ioRecs + i), owner);
|
||||
if (ioRecs[i].index > 0) {
|
||||
cliPrintf("%d", ioRecs[i].index);
|
||||
cliPrintf(" %d", ioRecs[i].index);
|
||||
}
|
||||
cliPrintLine("\r\n");
|
||||
cliPrintLine("");
|
||||
}
|
||||
|
||||
cliPrintLine("\r\n");
|
||||
cliPrintLine("\r\n");
|
||||
cliPrintLine("");
|
||||
cliPrintLine("");
|
||||
#ifdef MINIMAL_CLI
|
||||
cliPrintLine("DMA:");
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue