mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
Moved osdDisplayPortDevice_e osdDisplayPortDevice initialisation to within USE_OSD define.
This commit is contained in:
parent
d9d25ef84b
commit
192f2c6cc7
1 changed files with 2 additions and 1 deletions
|
@ -891,10 +891,11 @@ void init(void)
|
||||||
|
|
||||||
#if (defined(USE_OSD) || (defined(USE_MSP_DISPLAYPORT) && defined(USE_CMS)))
|
#if (defined(USE_OSD) || (defined(USE_MSP_DISPLAYPORT) && defined(USE_CMS)))
|
||||||
displayPort_t *osdDisplayPort = NULL;
|
displayPort_t *osdDisplayPort = NULL;
|
||||||
osdDisplayPortDevice_e osdDisplayPortDevice = OSD_DISPLAYPORT_DEVICE_NONE;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(USE_OSD)
|
#if defined(USE_OSD)
|
||||||
|
osdDisplayPortDevice_e osdDisplayPortDevice = OSD_DISPLAYPORT_DEVICE_NONE;
|
||||||
|
|
||||||
//The OSD need to be initialised after GYRO to avoid GYRO initialisation failure on some targets
|
//The OSD need to be initialised after GYRO to avoid GYRO initialisation failure on some targets
|
||||||
|
|
||||||
if (featureIsEnabled(FEATURE_OSD)) {
|
if (featureIsEnabled(FEATURE_OSD)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue