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

Minor aesthetic fixups for CLI.

This commit is contained in:
mikeller 2017-01-04 17:39:23 +13:00
parent b3ad232eec
commit 333cd334d0

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