AP_Periph: allow airspeed without I2C

This commit is contained in:
Iampete1 2024-05-05 23:16:33 +01:00 committed by Andrew Tridgell
parent 599ff17f34
commit 13cbffebcc
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ void AP_Periph_FW::init()
#endif
#ifdef HAL_PERIPH_ENABLE_AIRSPEED
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
#if (CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS) && (HAL_USE_I2C == TRUE)
const bool pins_enabled = ChibiOS::I2CBus::check_select_pins(0x01);
if (pins_enabled) {
ChibiOS::I2CBus::set_bus_to_floating(0);