Skip to content

Commit d0feb4d

Browse files
Merge pull request #2676 from shellixyz/implement_boxosd
Implement BOXOSD mode used to disable OSD display
2 parents 9b4a217 + 864e97b commit d0feb4d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/io/osd.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,6 +1746,11 @@ static void osdRefresh(timeUs_t currentTimeUs)
17461746
{
17471747
static timeUs_t lastTimeUs = 0;
17481748

1749+
if (IS_RC_MODE_ACTIVE(BOXOSD)) {
1750+
displayClearScreen(osdDisplayPort);
1751+
return;
1752+
}
1753+
17491754
// detect arm/disarm
17501755
if (armState != ARMING_FLAG(ARMED)) {
17511756
if (ARMING_FLAG(ARMED)) {

0 commit comments

Comments
 (0)