1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 15:25:36 +03:00

Merge pull request #9985 from mikeller/fix_osd_feature_disabling

Fixed disabling of OSD feature when OSD is disabled.
This commit is contained in:
Michael Keller 2020-07-08 00:57:26 +12:00 committed by GitHub
commit 5d591e3162
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -983,6 +983,10 @@ void init(void)
// osdInit will register with CMS by itself. // osdInit will register with CMS by itself.
osdInit(osdDisplayPort, osdDisplayPortDevice); osdInit(osdDisplayPort, osdDisplayPortDevice);
if (osdDisplayPortDevice == OSD_DISPLAYPORT_DEVICE_NONE) {
featureDisableImmediate(FEATURE_OSD);
}
} }
#endif // USE_OSD #endif // USE_OSD