mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 17:55:30 +03:00
Add board name to CLI version command output for unified targets (#8937)
Add board name to CLI version command output for unified targets
This commit is contained in:
commit
7ddf387fbc
1 changed files with 19 additions and 0 deletions
|
@ -4769,11 +4769,30 @@ static void cliVersion(char *cmdline)
|
||||||
shortGitRevision,
|
shortGitRevision,
|
||||||
MSP_API_VERSION_STRING
|
MSP_API_VERSION_STRING
|
||||||
);
|
);
|
||||||
|
|
||||||
#ifdef FEATURE_CUT_LEVEL
|
#ifdef FEATURE_CUT_LEVEL
|
||||||
cliPrintLinef(" / FEATURE CUT LEVEL %d", FEATURE_CUT_LEVEL);
|
cliPrintLinef(" / FEATURE CUT LEVEL %d", FEATURE_CUT_LEVEL);
|
||||||
#else
|
#else
|
||||||
cliPrintLinefeed();
|
cliPrintLinefeed();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_UNIFIED_TARGET
|
||||||
|
cliPrint("# ");
|
||||||
|
#ifdef USE_BOARD_INFO
|
||||||
|
if (strlen(getManufacturerId())) {
|
||||||
|
cliPrintf("manufacturer_id: %s ", getManufacturerId());
|
||||||
|
}
|
||||||
|
if (strlen(getBoardName())) {
|
||||||
|
cliPrintf("board_name: %s ", getBoardName());
|
||||||
|
}
|
||||||
|
#endif // USE_BOARD_INFO
|
||||||
|
|
||||||
|
#ifdef USE_CUSTOM_DEFAULTS
|
||||||
|
cliPrintf("custom defaults: %s", hasCustomDefaults() ? "YES" : "NO");
|
||||||
|
#endif // USE_CUSTOM_DEFAULTS
|
||||||
|
|
||||||
|
cliPrintLinefeed();
|
||||||
|
#endif // USE_UNIFIED_TARGET
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_RC_SMOOTHING_FILTER
|
#ifdef USE_RC_SMOOTHING_FILTER
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue