diff --git a/src/main/io/displayport_msp_bf_compat.h b/src/main/io/displayport_msp_bf_compat.h index 4eb96399fa..b7fe270700 100644 --- a/src/main/io/displayport_msp_bf_compat.h +++ b/src/main/io/displayport_msp_bf_compat.h @@ -22,16 +22,11 @@ #include "platform.h" -#ifdef USE_MSP_DISPLAYPORT - -#ifndef DISABLE_MSP_BF_COMPAT +#if defined(USE_MSP_DISPLAYPORT) && !defined(DISABLE_MSP_BF_COMPAT) #include "osd.h" uint8_t getBfCharacter(uint8_t ch, uint8_t page); #define isBfCompatibleVideoSystem(osdConfigPtr) (osdConfigPtr->video_system == VIDEO_SYSTEM_BFCOMPAT) #else #define getBfCharacter(x, page) (x) #define isBfCompatibleVideoSystem(osdConfigPtr) (false) - -#endif - #endif \ No newline at end of file