mirror of https://github.com/ArduPilot/ardupilot
AP_Periph: allow airspeed without I2C
This commit is contained in:
parent
599ff17f34
commit
13cbffebcc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue