1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 21:35:44 +03:00

Fix max7456 defines

This commit is contained in:
Martin Budden 2017-02-22 14:06:46 +00:00
parent 90393d5a12
commit 694875d0aa
6 changed files with 11 additions and 10 deletions

View file

@ -394,11 +394,11 @@ void init(void)
#ifdef OSD
if (feature(FEATURE_OSD)) {
#ifdef USE_MAX7456
#if defined(USE_MAX7456)
// if there is a max7456 chip for the OSD then use it, otherwise use MSP
displayPort_t *osdDisplayPort = max7456DisplayPortInit(vcdProfile());
#else
displayPort_t *osdDisplayPort = displayPortMspInit(displayPortProfileMax7456());
#elif defined(USE_MSP_DISPLAYPORT)
displayPort_t *osdDisplayPort = displayPortMspInit();
#endif
osdInit(osdDisplayPort);
}