diff --git a/libraries/AP_RangeFinder/RangeFinder.cpp b/libraries/AP_RangeFinder/RangeFinder.cpp index 0779e968d0..d7b5c890ac 100644 --- a/libraries/AP_RangeFinder/RangeFinder.cpp +++ b/libraries/AP_RangeFinder/RangeFinder.cpp @@ -211,7 +211,7 @@ void RangeFinder::update(void) void RangeFinder::detect_instance(uint8_t instance) { uint8_t type = _type[instance]; -#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 +#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN if (type == RangeFinder_TYPE_PLI2C || type == RangeFinder_TYPE_MBI2C) { // I2C sensor types are handled by the PX4Firmware code