mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
Add OSD Profile feature - issue 4155
This commit is contained in:
parent
8a4ea0785e
commit
8d981df1a9
12 changed files with 227 additions and 66 deletions
|
@ -861,9 +861,9 @@ STATIC_UNIT_TESTED uint16_t cmsHandleKey(displayPort_t *pDisplay, cms_key_e key)
|
|||
uint16_t *val = (uint16_t *)p->data;
|
||||
|
||||
if (key == CMS_KEY_RIGHT)
|
||||
*val |= VISIBLE_FLAG;
|
||||
*val |= OSD_PROFILE_1_FLAG;
|
||||
else
|
||||
*val %= ~VISIBLE_FLAG;
|
||||
*val %= ~OSD_PROFILE_1_FLAG;
|
||||
SET_PRINTVALUE(p);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue