mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 15:53:56 -04:00
AP_InertialSensor: fixes for HAL_GPIO_*
This commit is contained in:
parent
805d79debe
commit
4c43cd9775
@ -38,7 +38,7 @@ void setup(void)
|
||||
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_APM2
|
||||
// we need to stop the barometer from holding the SPI bus
|
||||
hal.gpio->pinMode(40, GPIO_OUTPUT);
|
||||
hal.gpio->pinMode(40, HAL_GPIO_OUTPUT);
|
||||
hal.gpio->write(40, 1);
|
||||
#endif
|
||||
|
||||
|
@ -42,7 +42,7 @@ void setup(void)
|
||||
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_APM2
|
||||
// we need to stop the barometer from holding the SPI bus
|
||||
hal.gpio->pinMode(40, GPIO_OUTPUT);
|
||||
hal.gpio->pinMode(40, HAL_GPIO_OUTPUT);
|
||||
hal.gpio->write(40, 1);
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user