mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 06:45:16 +03:00
Fixed display of arming flags in CLI.
This commit is contained in:
parent
6f4bd2ac06
commit
d5fdb1a498
1 changed files with 1 additions and 1 deletions
|
@ -3010,7 +3010,7 @@ static void cliStatus(char *cmdline)
|
||||||
#if defined(OSD) || !defined(MINIMAL_CLI)
|
#if defined(OSD) || !defined(MINIMAL_CLI)
|
||||||
/* Flag strings are present if OSD is compiled so may as well use them even with MINIMAL_CLI */
|
/* Flag strings are present if OSD is compiled so may as well use them even with MINIMAL_CLI */
|
||||||
cliPrint("Arming disable flags:");
|
cliPrint("Arming disable flags:");
|
||||||
uint16_t flags = getArmingDisableFlags();
|
armingDisableFlags_e flags = getArmingDisableFlags();
|
||||||
while (flags) {
|
while (flags) {
|
||||||
int bitpos = ffs(flags) - 1;
|
int bitpos = ffs(flags) - 1;
|
||||||
flags &= ~(1 << bitpos);
|
flags &= ~(1 << bitpos);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue