mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +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,
|
||||
MSP_API_VERSION_STRING
|
||||
);
|
||||
|
||||
#ifdef FEATURE_CUT_LEVEL
|
||||
cliPrintLinef(" / FEATURE CUT LEVEL %d", FEATURE_CUT_LEVEL);
|
||||
#else
|
||||
cliPrintLinefeed();
|
||||
#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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue