1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-13 11:29:56 +03:00

Merge pull request #8729 from mmosca/fix-build

Fix build error in osd.c when USE_MSP_DISPLAYPORT is not defined.
This commit is contained in:
Paweł Spychalski 2023-01-24 09:34:12 +01:00 committed by GitHub
commit aa8fcc2991
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,16 +22,11 @@
#include "platform.h" #include "platform.h"
#ifdef USE_MSP_DISPLAYPORT #if defined(USE_MSP_DISPLAYPORT) && !defined(DISABLE_MSP_BF_COMPAT)
#ifndef DISABLE_MSP_BF_COMPAT
#include "osd.h" #include "osd.h"
uint8_t getBfCharacter(uint8_t ch, uint8_t page); uint8_t getBfCharacter(uint8_t ch, uint8_t page);
#define isBfCompatibleVideoSystem(osdConfigPtr) (osdConfigPtr->video_system == VIDEO_SYSTEM_BFCOMPAT) #define isBfCompatibleVideoSystem(osdConfigPtr) (osdConfigPtr->video_system == VIDEO_SYSTEM_BFCOMPAT)
#else #else
#define getBfCharacter(x, page) (x) #define getBfCharacter(x, page) (x)
#define isBfCompatibleVideoSystem(osdConfigPtr) (false) #define isBfCompatibleVideoSystem(osdConfigPtr) (false)
#endif
#endif #endif