|
|
|
@ -211,7 +211,7 @@ void RangeFinder::update(void)
@@ -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
|
|
|
|
|