mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
fixed bit-logic for simple modes
This commit is contained in:
parent
8b90ad84f6
commit
d4a068416f
@ -17,7 +17,7 @@ static void read_control_switch()
|
||||
#if CH7_OPTION != SIMPLE_MODE_CONTROL
|
||||
// setup Simple mode
|
||||
// do we enable simple mode?
|
||||
do_simple = (g.simple_modes & 1 << switchPosition);
|
||||
do_simple = (g.simple_modes & (1 << switchPosition));
|
||||
//Serial.printf("do simple: %d \n", (int)do_simple);
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user