mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 19:40:31 +03:00
Show configuration status in CLI.
This commit is contained in:
parent
2101326a1d
commit
3174f5ab30
1 changed files with 3 additions and 1 deletions
|
@ -303,6 +303,8 @@ static const char *mcuTypeNames[] = {
|
|||
"H743 (Rev.V)",
|
||||
};
|
||||
|
||||
static const char *configurationStates[] = { "UNCONFIGURED", "CUSTOM DEFAULTS", "CONFIGURED" };
|
||||
|
||||
typedef enum dumpFlags_e {
|
||||
DUMP_MASTER = (1 << 0),
|
||||
DUMP_PROFILE = (1 << 1),
|
||||
|
@ -4702,7 +4704,7 @@ static void cliStatus(const char *cmdName, char *cmdline)
|
|||
#endif
|
||||
cliPrintLinefeed();
|
||||
|
||||
cliPrintLinef("Config size: %d, Max available config: %d", getEEPROMConfigSize(), getEEPROMStorageSize());
|
||||
cliPrintLinef("Configuration: %s, size: %d, max available: %d", configurationStates[systemConfigMutable()->configurationState], getEEPROMConfigSize(), getEEPROMStorageSize());
|
||||
|
||||
// Sensors
|
||||
cliPrint("Gyros detected:");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue