mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
Plane: fixed bit combination
bitwise, not arithmetic
This commit is contained in:
parent
c5f19f5df8
commit
3913c42183
@ -107,7 +107,7 @@ static void set_cmd_with_index(struct Location temp, int16_t i)
|
||||
temp.options &= ~(MASK_OPTIONS_RELATIVE_ALT);
|
||||
}
|
||||
// zero unused bits
|
||||
temp.options &= (MASK_OPTIONS_RELATIVE_ALT + MASK_OPTIONS_LOITER_DIRECTION);
|
||||
temp.options &= (MASK_OPTIONS_RELATIVE_ALT | MASK_OPTIONS_LOITER_DIRECTION);
|
||||
|
||||
hal.storage->write_byte(mem, temp.id);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user