fixed bit-logic for simple modes

This commit is contained in:
Andrew Tridgell 2011-09-17 14:33:01 +10:00
parent 8b90ad84f6
commit d4a068416f

View File

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