mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 05:45:31 +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:
parent
4d70c43c1a
commit
228e457ead
2 changed files with 5 additions and 2 deletions
|
@ -54,7 +54,9 @@ static int heartbeat(displayPort_t *displayPort)
|
||||||
{
|
{
|
||||||
uint8_t subcmd[] = { 0 };
|
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));
|
return output(displayPort, MSP_DISPLAYPORT, subcmd, sizeof(subcmd));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -846,6 +846,7 @@ static void osdRefresh(timeUs_t currentTimeUs)
|
||||||
resumeRefreshAt = 0;
|
resumeRefreshAt = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
displayHeartbeat(osdDisplayPort);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
displayClearScreen(osdDisplayPort);
|
displayClearScreen(osdDisplayPort);
|
||||||
|
@ -859,7 +860,7 @@ static void osdRefresh(timeUs_t currentTimeUs)
|
||||||
if (!displayIsGrabbed(osdDisplayPort)) {
|
if (!displayIsGrabbed(osdDisplayPort)) {
|
||||||
osdUpdateAlarms();
|
osdUpdateAlarms();
|
||||||
osdDrawElements();
|
osdDrawElements();
|
||||||
displayHeartbeat(osdDisplayPort); // heartbeat to stop Minim OSD going back into native mode
|
displayHeartbeat(osdDisplayPort);
|
||||||
#ifdef OSD_CALLS_CMS
|
#ifdef OSD_CALLS_CMS
|
||||||
} else {
|
} else {
|
||||||
cmsUpdate(currentTimeUs);
|
cmsUpdate(currentTimeUs);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue