mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 13:25:30 +03:00
Add displayPortProfile
This commit is contained in:
parent
7acaf05b15
commit
d33977a506
9 changed files with 54 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue