1
0
Fork 0
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:
mikeller 2017-11-01 20:31:02 +13:00
parent 6f4bd2ac06
commit d5fdb1a498

View file

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