1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 13:25:30 +03:00

Add displayPortProfile

This commit is contained in:
jflyper 2017-01-16 19:37:40 +09:00
parent 7acaf05b15
commit d33977a506
9 changed files with 54 additions and 12 deletions

View file

@ -392,9 +392,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);
}
@ -438,7 +438,7 @@ void init(void)
mspSerialInit();
#if defined(USE_MSP_DISPLAYPORT) && defined(CMS)
cmsDisplayPortRegister(displayPortMspInit());
cmsDisplayPortRegister(displayPortMspInit(displayPortProfileMsp()));
#endif
#ifdef USE_CLI