From dfb219038f6a255dd10a3bba7c71aad70c637726 Mon Sep 17 00:00:00 2001 From: Anders Hoglund Date: Sat, 1 Apr 2017 18:35:01 +0200 Subject: [PATCH] Fix compile warning on unused osdDisplayPort- --- src/main/fc/fc_init.c | 2 ++ 1 file changed, 2 insertions(+) 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