AP_Rangefinder: added support for VRBRAIN boards

This commit is contained in:
Emile Castelnuovo 2014-12-30 11:33:05 +01:00 committed by Andrew Tridgell
parent 731329fc55
commit b0b892e578

View File

@ -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