Skip to content

Commit

Permalink
Include geozone in arming disabled reasons.
Browse files Browse the repository at this point in the history
Fixes #10635
  • Loading branch information
mmosca committed Jan 27, 2025
1 parent 316ff79 commit f7a85fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/main/fc/cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -4174,7 +4174,9 @@ static void cliStatus(char *cmdline)
while (flags) {
int bitpos = ffs(flags) - 1;
flags &= ~(1 << bitpos);
if (bitpos > 6) cliPrintf(" %s", armingDisableFlagNames[bitpos - 7]);
if (bitpos > 5) {
cliPrintf(" %s", armingDisableFlagNames[bitpos - 6]);
}
}
cliPrintLinefeed();
if (armingFlags & ARMING_DISABLED_INVALID_SETTING) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/fc/runtime_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static EXTENDED_FASTRAM uint32_t enabledSensors = 0;

#if !defined(CLI_MINIMAL_VERBOSITY)
const char *armingDisableFlagNames[]= {
"FS", "ANGLE", "CAL", "OVRLD", "NAV", "COMPASS",
"GEOZONE", "FS", "ANGLE", "CAL", "OVRLD", "NAV", "COMPASS",
"ACC", "ARMSW", "HWFAIL", "BOXFS", "PLACEHOLDER", "RX",
"THR", "CLI", "CMS", "OSD", "ROLL/PITCH", "AUTOTRIM", "OOM",
"SETTINGFAIL", "PWMOUT", "NOPREARM", "DSHOTBEEPER", "LANDED"
Expand Down

0 comments on commit f7a85fc

Please sign in to comment.