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:
Bruce Luckcuck 2019-09-23 09:59:42 -04:00
parent d1d9875208
commit adbab5f782
1 changed files with 19 additions and 0 deletions

View File

@ -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