diff --git a/src/main/fc/fc_init.c b/src/main/fc/fc_init.c index 7a346321ec..75882222a1 100644 --- a/src/main/fc/fc_init.c +++ b/src/main/fc/fc_init.c @@ -436,7 +436,9 @@ void init(void) cmsInit(); #endif +#if ( defined(OSD) || (defined(USE_MSP_DISPLAYPORT) && defined(CMS)) ) displayPort_t *osdDisplayPort = NULL; +#endif #ifdef OSD //The OSD need to be initialised after GYRO to avoid GYRO initialisation failure on some targets