mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 05:15:25 +03:00
Merge pull request #9981 from mikeller/fix_max7456_delay_problems
Fixed the MAX7456 loop time problems introduced by #9948.
This commit is contained in:
commit
94cd650472
18 changed files with 118 additions and 96 deletions
|
@ -901,17 +901,18 @@ static bool mspCommonProcessOutCommand(int16_t cmdMSP, sbuf_t *dst, mspPostProce
|
|||
|
||||
osdDisplayPortDevice_e deviceType;
|
||||
displayPort_t *osdDisplayPort = osdGetDisplayPort(&deviceType);
|
||||
bool displayIsReady = osdDisplayPort && displayCheckReady(osdDisplayPort, true);
|
||||
switch (deviceType) {
|
||||
case OSD_DISPLAYPORT_DEVICE_MAX7456:
|
||||
osdFlags |= OSD_FLAGS_OSD_HARDWARE_MAX_7456;
|
||||
if (osdDisplayPort && displayIsReady(osdDisplayPort)) {
|
||||
if (displayIsReady) {
|
||||
osdFlags |= OSD_FLAGS_OSD_DEVICE_DETECTED;
|
||||
}
|
||||
|
||||
break;
|
||||
case OSD_DISPLAYPORT_DEVICE_FRSKYOSD:
|
||||
osdFlags |= OSD_FLAGS_OSD_HARDWARE_FRSKYOSD;
|
||||
if (osdDisplayPort && displayIsReady(osdDisplayPort)) {
|
||||
if (displayIsReady) {
|
||||
osdFlags |= OSD_FLAGS_OSD_DEVICE_DETECTED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue