mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
By default mark OSD element as rendered in case it's in the off blink state (#14188)
By default render OSD element in a single cycle
This commit is contained in:
parent
8388226d40
commit
6e863e86d0
1 changed files with 3 additions and 1 deletions
|
@ -2081,6 +2081,9 @@ void osdAddActiveElements(void)
|
|||
|
||||
static bool osdDrawSingleElement(displayPort_t *osdDisplayPort, uint8_t item)
|
||||
{
|
||||
// By default mark the element as rendered in case it's in the off blink state
|
||||
activeElement.rendered = true;
|
||||
|
||||
if (!osdElementDrawFunction[item]) {
|
||||
// Element has no drawing function
|
||||
return true;
|
||||
|
@ -2101,7 +2104,6 @@ static bool osdDrawSingleElement(displayPort_t *osdDisplayPort, uint8_t item)
|
|||
activeElement.buff = elementBuff;
|
||||
activeElement.osdDisplayPort = osdDisplayPort;
|
||||
activeElement.drawElement = true;
|
||||
activeElement.rendered = true;
|
||||
activeElement.attr = DISPLAYPORT_SEVERITY_NORMAL;
|
||||
|
||||
// Call the element drawing function
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue