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:
parent
42267349db
commit
17e43e3363
4 changed files with 42 additions and 10 deletions
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue