1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Improved OSD & displayPort initialisation. Allowed nested screen grabbing

This commit is contained in:
Martin Budden 2016-11-16 14:27:59 +00:00
parent 9a62b04699
commit 7c8d1967d0
9 changed files with 153 additions and 124 deletions

View file

@ -407,7 +407,12 @@ void init(void)
#ifdef OSD
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(masterConfig.osdProfile.video_system);
#else
displayPort_t *osdDisplayPort = displayPortMspInit();
#endif
osdInit(osdDisplayPort);
}
#endif