Rover: removed ADC.h include

This commit is contained in:
Andrew Tridgell 2018-08-01 19:52:54 +10:00 committed by Randy Mackay
parent f9a8d249c4
commit 547c6b5afe
2 changed files with 1 additions and 2 deletions

View File

@ -26,7 +26,6 @@
#include <AC_PID/AC_P.h>
#include <AC_PID/AC_PID.h>
#include <AP_AccelCal/AP_AccelCal.h> // interface and maths for accelerometer calibration
#include <AP_ADC/AP_ADC.h> // ArduPilot Mega Analog to Digital Converter Library
#include <AP_AHRS/AP_AHRS.h> // ArduPilot Mega DCM Library
#include <AP_Airspeed/AP_Airspeed.h> // needed for AHRS build
#include <AP_Baro/AP_Baro.h>

View File

@ -294,7 +294,7 @@ void Rover::notify_mode(const Mode *mode)
*/
uint8_t Rover::check_digital_pin(uint8_t pin)
{
const int8_t dpin = hal.gpio->analogPinToDigitalPin(pin);
const int8_t dpin = pin;
if (dpin == -1) {
return 0;
}