mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
Rover: removed ADC.h include
This commit is contained in:
parent
f9a8d249c4
commit
547c6b5afe
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user