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

Fix OSD defaults based on SD/HD (#13320)

Fix OSD defaults based on SD/HD and validate changing video_system to/from HD
This commit is contained in:
Steve Evans 2024-01-22 23:56:25 +00:00 committed by GitHub
parent 42267349db
commit 17e43e3363
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 42 additions and 10 deletions

View file

@ -891,7 +891,13 @@ void init(void)
//The OSD need to be initialised after GYRO to avoid GYRO initialisation failure on some targets
if (featureIsEnabled(FEATURE_OSD)) {
osdDisplayPortDevice_e device = osdConfig()->displayPortDevice;
osdDisplayPortDevice_e device;
if (vcdProfile()->video_system == VIDEO_SYSTEM_HD) {
device = OSD_DISPLAYPORT_DEVICE_MSP;
} else {
device = osdConfig()->displayPortDevice;
}
switch(device) {