From 6e863e86d06efa692c5b5b9bd1e464a2f404884e Mon Sep 17 00:00:00 2001 From: Steve Evans Date: Wed, 22 Jan 2025 16:38:32 +0000 Subject: [PATCH] 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 --- src/main/osd/osd_elements.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/osd/osd_elements.c b/src/main/osd/osd_elements.c index c0a2a0fde5..23ebe72afb 100644 --- a/src/main/osd/osd_elements.c +++ b/src/main/osd/osd_elements.c @@ -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