diff --git a/src/main/fc/fc_init.c b/src/main/fc/fc_init.c index af9fdcc33a..f435677fa9 100644 --- a/src/main/fc/fc_init.c +++ b/src/main/fc/fc_init.c @@ -435,7 +435,9 @@ void init(void) rxInit(); +#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