Skip to content

Commit

Permalink
AP_Periph: allow airspeed without I2C
Browse files Browse the repository at this point in the history
  • Loading branch information
IamPete1 committed May 5, 2024
1 parent 71a4885 commit d48b152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/AP_Periph/AP_Periph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d48b152

Please sign in to comment.