mirror of https://github.com/ArduPilot/ardupilot
AP_OSD: use `set_and_default` when ensuring first screen is enabled
This commit is contained in:
parent
c4691bef94
commit
8ccec7615c
|
@ -256,8 +256,8 @@ AP_OSD::AP_OSD()
|
|||
}
|
||||
AP_Param::setup_object_defaults(this, var_info);
|
||||
#if OSD_ENABLED
|
||||
// default first screen enabled
|
||||
screen[0].enabled.set(1);
|
||||
// force first screen enabled
|
||||
screen[0].enabled.set_and_default(1);
|
||||
previous_pwm_screen = -1;
|
||||
#endif
|
||||
#ifdef WITH_SITL_OSD
|
||||
|
|
Loading…
Reference in New Issue