1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

Fixed disabling of OSD feature when OSD is disabled.

This commit is contained in:
mikeller 2020-07-07 00:29:18 +12:00
parent 41fa8754bc
commit 1a30329c93

View file

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