1
0
Fork 0
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:
Pieter Kruger 2018-11-30 07:37:29 +10:00
parent 8a4ea0785e
commit 8d981df1a9
12 changed files with 227 additions and 66 deletions

View file

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