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);