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:
parent
5d5ded2131
commit
f1035c52eb
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue