1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 20:35:33 +03:00

Minor touch up

OME_Submenu unconditionally calls cmsMenuChange, so p->func test is not
required.
This commit is contained in:
jflyper 2016-11-25 20:20:29 +09:00
parent 5d5ded2131
commit f1035c52eb

View file

@ -669,7 +669,7 @@ STATIC_UNIT_TESTED uint16_t cmsHandleKey(displayPort_t *pDisplay, uint8_t key)
switch (p->type) {
case OME_Submenu:
if (p->func && key == KEY_RIGHT) {
if (key == KEY_RIGHT) {
cmsMenuChange(pDisplay, p->data);
res = BUTTON_PAUSE;
}