mirror of https://github.com/ArduPilot/ardupilot
AP_OSD: correct checks for HAL_WITH_MSP_DISPLAYPORT
This commit is contained in:
parent
b0c3aae8e2
commit
bd6198ae1a
|
@ -88,7 +88,7 @@ public:
|
|||
|
||||
protected:
|
||||
bool check_option(uint32_t option);
|
||||
#ifdef HAL_WITH_MSP_DISPLAYPORT
|
||||
#if HAL_WITH_MSP_DISPLAYPORT
|
||||
virtual uint8_t get_txt_resolution() const {
|
||||
return 0;
|
||||
}
|
||||
|
@ -135,7 +135,7 @@ public:
|
|||
static const struct AP_Param::GroupInfo var_info[];
|
||||
static const struct AP_Param::GroupInfo var_info2[];
|
||||
|
||||
#ifdef HAL_WITH_MSP_DISPLAYPORT
|
||||
#if HAL_WITH_MSP_DISPLAYPORT
|
||||
uint8_t get_txt_resolution() const override {
|
||||
return txt_resolution;
|
||||
}
|
||||
|
@ -234,7 +234,7 @@ private:
|
|||
AP_OSD_Setting batt_bar{true, 1, 1};
|
||||
AP_OSD_Setting arming{true, 1, 1};
|
||||
|
||||
#ifdef HAL_WITH_MSP_DISPLAYPORT
|
||||
#if HAL_WITH_MSP_DISPLAYPORT
|
||||
// Per screen HD resolution options (currently supported only by DisplayPort)
|
||||
AP_Int8 txt_resolution;
|
||||
AP_Int8 font_index;
|
||||
|
|
Loading…
Reference in New Issue