1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-26 09:45:33 +03:00

Improve video system selection

This commit is contained in:
Michel Pastor 2018-06-18 20:18:10 +02:00
parent 5156038d75
commit 524f3b730f
9 changed files with 21 additions and 20 deletions

View file

@ -557,9 +557,7 @@ void init(void)
if (feature(FEATURE_OSD)) {
#if defined(USE_MAX7456)
// If there is a max7456 chip for the OSD then use it
static vcdProfile_t vcdProfile;
vcdProfile.video_system = osdConfig()->video_system;
osdDisplayPort = max7456DisplayPortInit(&vcdProfile);
osdDisplayPort = max7456DisplayPortInit(osdConfig()->video_system);
#elif defined(USE_OSD_OVER_MSP_DISPLAYPORT) // OSD over MSP; not supported (yet)
osdDisplayPort = displayPortMspInit();
#endif