AP_MSP: allow baro backends to be individually compiled out

filtering by define name is the most useful bit
This commit is contained in:
Peter Barker 2022-05-12 13:59:59 +10:00 committed by Andrew Tridgell
parent e7d8ad4096
commit c8f1d2f023
1 changed files with 1 additions and 1 deletions

View File

@ -562,7 +562,7 @@ void AP_MSP_Telem_Backend::msp_handle_compass(const MSP::msp_compass_data_messag
void AP_MSP_Telem_Backend::msp_handle_baro(const MSP::msp_baro_data_message_t &pkt)
{
#if HAL_MSP_BARO_ENABLED
#if AP_BARO_MSP_ENABLED
AP::baro().handle_msp(pkt);
#endif
}