VRBRAIN / AP_RangeFinder: removed AP_RangeFinder_PX4_PWM for VR Brain boards

This commit is contained in:
LukeMike 2018-02-03 14:59:45 +01:00 committed by Andrew Tridgell
parent a319f6632f
commit 721f55e93c
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
#include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4
#include <AP_BoardConfig/AP_BoardConfig.h>
#include "AP_RangeFinder_PX4_PWM.h"

View File

@ -654,7 +654,7 @@ void RangeFinder::detect_instance(uint8_t instance)
hal.i2c_mgr->get_device(0, 0x29)));
}
break;
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4
case RangeFinder_TYPE_PX4_PWM:
if (AP_RangeFinder_PX4_PWM::detect()) {
state[instance].instance = instance;