From 5d263776f246a2c84342d768ae2f910ed186c071 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Wed, 18 Jan 2017 14:18:55 -1000 Subject: [PATCH] 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. --- src/systemcmds/tests/test_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systemcmds/tests/test_gpio.c b/src/systemcmds/tests/test_gpio.c index b8021a3ac8..963f23e4ee 100644 --- a/src/systemcmds/tests/test_gpio.c +++ b/src/systemcmds/tests/test_gpio.c @@ -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);