1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

Merge pull request #2135 from jflyper/bfdev-displayport-adjustable-column

DISPLAYPORT+CMS: Add displayPortProfile
This commit is contained in:
borisbstyle 2017-01-16 16:21:19 +01:00 committed by GitHub
commit 584d96ba19
9 changed files with 54 additions and 12 deletions

View file

@ -393,9 +393,9 @@ void init(void)
if (feature(FEATURE_OSD)) {
#ifdef USE_MAX7456
// if there is a max7456 chip for the OSD then use it, otherwise use MSP
displayPort_t *osdDisplayPort = max7456DisplayPortInit(vcdProfile());
displayPort_t *osdDisplayPort = max7456DisplayPortInit(vcdProfile(), displayPortProfileMax7456());
#else
displayPort_t *osdDisplayPort = displayPortMspInit();
displayPort_t *osdDisplayPort = displayPortMspInit(displayPortProfileMax7456());
#endif
osdInit(osdDisplayPort);
}
@ -439,7 +439,7 @@ void init(void)
mspSerialInit();
#if defined(USE_MSP_DISPLAYPORT) && defined(CMS)
cmsDisplayPortRegister(displayPortMspInit());
cmsDisplayPortRegister(displayPortMspInit(displayPortProfileMsp()));
#endif
#ifdef USE_CLI