mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-21 19:57:34 +08:00
Placed dependancy on BOARD_USES_PX4IO not path (PX4IO_DEVICE_PATH)
Code was conditionaly included based on #define PX4IO_DEVICE_PATH
in drivers/drv_gpio.h depanedent on board #ifdef CONFIG_ARCH_BOARDxxxx
Now that dependancy comes from board_common.h as BOARD_USES_PX4IO defined
when a board config provides PX4IO_SERIAL_DEVICE.
This commit is contained in:
committed by
Lorenz Meier
parent
33486d5047
commit
5d263776f2
@@ -91,7 +91,7 @@ int test_gpio(int argc, char *argv[])
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
#ifdef PX4IO_DEVICE_PATH
|
||||
#if defined(BOARD_USES_PX4IO)
|
||||
|
||||
int fd = px4_open(PX4IO_DEVICE_PATH, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user