mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 04:15:44 +03:00
Make CMS OSD menu max7456 settings have realtime effect
Makes the invert, black brightness, and white brightness update the display as the settings are changed rather than only taking effect once the menu is exited.
This commit is contained in:
parent
18c485707e
commit
65aac98c1f
2 changed files with 16 additions and 4 deletions
|
@ -952,6 +952,9 @@ STATIC_UNIT_TESTED uint16_t cmsHandleKey(displayPort_t *pDisplay, cms_key_e key)
|
|||
if ((p->flags & REBOOT_REQUIRED) && (*val != previousValue)) {
|
||||
setRebootRequired();
|
||||
}
|
||||
if (p->func) {
|
||||
p->func(pDisplay, p->data);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue