1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 21:35:44 +03:00

CF/BF - Prevent 'waiting for fc' message on OSD slave when the osd

statistics page or splash screen is shown.
This commit is contained in:
Hydra 2017-04-15 12:45:53 +01:00 committed by Dominic Clifton
parent 4d70c43c1a
commit 228e457ead
2 changed files with 5 additions and 2 deletions

View file

@ -54,7 +54,9 @@ static int heartbeat(displayPort_t *displayPort)
{
uint8_t subcmd[] = { 0 };
// ensure display is not released by MW OSD software
// heartbeat is used to:
// a) ensure display is not released by MW OSD software
// b) prevent OSD Slave boards from displaying a 'disconnected' status.
return output(displayPort, MSP_DISPLAYPORT, subcmd, sizeof(subcmd));
}

View file

@ -846,6 +846,7 @@ static void osdRefresh(timeUs_t currentTimeUs)
resumeRefreshAt = 0;
}
displayHeartbeat(osdDisplayPort);
return;
} else {
displayClearScreen(osdDisplayPort);
@ -859,7 +860,7 @@ static void osdRefresh(timeUs_t currentTimeUs)
if (!displayIsGrabbed(osdDisplayPort)) {
osdUpdateAlarms();
osdDrawElements();
displayHeartbeat(osdDisplayPort); // heartbeat to stop Minim OSD going back into native mode
displayHeartbeat(osdDisplayPort);
#ifdef OSD_CALLS_CMS
} else {
cmsUpdate(currentTimeUs);