mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-02 10:23:25 +08:00
AP_Periph only instantiates an AP_Airspeed object when AP_PERIPH_AIRSPEED_ENABLED is set, but AP_AIRSPEED_ENABLED defaulted to 1 regardless, leaving the singleton null on other periph builds. Tie the two together as is already done for other sensor libraries.