1
0
Fork 0
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:
Michael Keller 2019-09-25 23:25:37 +12:00 committed by GitHub
commit 7ddf387fbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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