1
0
Fork 0
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:
Steve Evans 2025-01-22 16:38:32 +00:00 committed by GitHub
parent 8388226d40
commit 6e863e86d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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