mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_MSP: add define AP_AIRSPEED_ENABLED
This commit is contained in:
parent
3ff13733ea
commit
1aacd7ba02
@ -567,7 +567,7 @@ void AP_MSP_Telem_Backend::msp_handle_baro(const MSP::msp_baro_data_message_t &p
|
|||||||
|
|
||||||
void AP_MSP_Telem_Backend::msp_handle_airspeed(const MSP::msp_airspeed_data_message_t &pkt)
|
void AP_MSP_Telem_Backend::msp_handle_airspeed(const MSP::msp_airspeed_data_message_t &pkt)
|
||||||
{
|
{
|
||||||
#if HAL_MSP_AIRSPEED_ENABLED
|
#if HAL_MSP_AIRSPEED_ENABLED && AP_AIRSPEED_ENABLED
|
||||||
auto *airspeed = AP::airspeed();
|
auto *airspeed = AP::airspeed();
|
||||||
if (airspeed) {
|
if (airspeed) {
|
||||||
airspeed->handle_msp(pkt);
|
airspeed->handle_msp(pkt);
|
||||||
|
Loading…
Reference in New Issue
Block a user