mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-03 04:03:59 -04:00
Rover: fix for HAL_GPIO_*
This commit is contained in:
parent
1e2214f8d1
commit
e35c0a578d
@ -2,9 +2,6 @@
|
||||
#ifndef __COMPAT_H__
|
||||
#define __COMPAT_H__
|
||||
|
||||
#define OUTPUT GPIO_OUTPUT
|
||||
#define INPUT GPIO_INPUT
|
||||
|
||||
#define HIGH 1
|
||||
#define LOW 0
|
||||
|
||||
|
@ -470,7 +470,7 @@ static uint8_t check_digital_pin(uint8_t pin)
|
||||
return 0;
|
||||
}
|
||||
// ensure we are in input mode
|
||||
hal.gpio->pinMode(dpin, GPIO_INPUT);
|
||||
hal.gpio->pinMode(dpin, HAL_GPIO_INPUT);
|
||||
|
||||
// enable pullup
|
||||
hal.gpio->write(dpin, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user