mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 20:10:18 +03:00
Add board name to CLI version command output for unified targets
Will help improve support efforts by more clearly indicating which board's targer config was applied to the underlying unified target base.
This commit is contained in:
parent
d1d9875208
commit
adbab5f782
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