[ersky9x] rotary encoders inversion
RE1 and RE2 renamed as REa and REb (will be needed for Flight Phases uses)
This commit is contained in:
+4
-4
@@ -178,8 +178,8 @@ void menuMainView(uint8_t event)
|
||||
killEvents(KEY_DOWN);
|
||||
break;
|
||||
#if defined(ROTARY_ENCODERS)
|
||||
case EVT_KEY_LONG(BTN_RE1):
|
||||
case EVT_KEY_LONG(BTN_RE2):
|
||||
case EVT_KEY_LONG(BTN_REa):
|
||||
case EVT_KEY_LONG(BTN_REb):
|
||||
if (navigationRotaryEncoder(event)) {
|
||||
killEvents(event);
|
||||
if (s_inflight_value && !s_inflight_enable) {
|
||||
@@ -189,8 +189,8 @@ void menuMainView(uint8_t event)
|
||||
}
|
||||
}
|
||||
// no break
|
||||
case EVT_KEY_BREAK(BTN_RE1):
|
||||
case EVT_KEY_BREAK(BTN_RE2):
|
||||
case EVT_KEY_BREAK(BTN_REa):
|
||||
case EVT_KEY_BREAK(BTN_REb):
|
||||
s_inflight_enable = false;
|
||||
break;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user