mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Merge pull request #2470 from martinbudden/bf_max7456_defines
Fix max7456 defines
This commit is contained in:
commit
3b954244c5
6 changed files with 11 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue