1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 01:35:41 +03:00

Merge pull request #1987 from mikeller/cli_fixups

Minor aesthetic fixups for CLI.
This commit is contained in:
borisbstyle 2017-01-04 09:36:22 +01:00 committed by GitHub
commit 97f5595505

View file

@ -3377,6 +3377,7 @@ static bool resourceCheck(uint8_t resourceIndex, uint8_t index, ioTag_t tag)
if (resourceTable[r].maxIndex > 0) { if (resourceTable[r].maxIndex > 0) {
cliPrintf(" %d", RESOURCE_INDEX(i)); cliPrintf(" %d", RESOURCE_INDEX(i));
} }
cliPrint("\r\n");
if (error) { if (error) {
return false; return false;
} }
@ -3488,7 +3489,7 @@ static void cliResource(char *cmdline)
if (!resourceCheck(resourceIndex, index, DEFIO_TAG_MAKE(port, pin))) { if (!resourceCheck(resourceIndex, index, DEFIO_TAG_MAKE(port, pin))) {
return; return;
} }
cliPrintf("Resource is set to %c%02d!\r\n", port + 'A', pin); cliPrintf("\r\nResource is set to %c%02d!\r\n", port + 'A', pin);
#else #else
cliPrintf("Set to %c%02d!", port + 'A', pin); cliPrintf("Set to %c%02d!", port + 'A', pin);
#endif #endif
@ -3724,7 +3725,7 @@ const clicmd_t cmdTable[] = {
CLI_COMMAND_DEF("gpspassthrough", "passthrough gps to serial", NULL, cliGpsPassthrough), CLI_COMMAND_DEF("gpspassthrough", "passthrough gps to serial", NULL, cliGpsPassthrough),
#endif #endif
#ifdef USE_ESCSERIAL #ifdef USE_ESCSERIAL
CLI_COMMAND_DEF("escprog", "passthrough esc to serial", "<mode [sk/bl/ki]> <index>", cliEscPassthrough), CLI_COMMAND_DEF("escprog", "passthrough esc to serial", "<mode [sk/bl/ki/cc]> <index>", cliEscPassthrough),
#endif #endif
CLI_COMMAND_DEF("help", NULL, NULL, cliHelp), CLI_COMMAND_DEF("help", NULL, NULL, cliHelp),
#ifdef LED_STRIP #ifdef LED_STRIP