From 34a3b260f34398994a315388b3ffed22a1fe22fb Mon Sep 17 00:00:00 2001 From: px4dev Date: Wed, 31 Oct 2012 00:37:15 -0700 Subject: Move the last of the board-specific code for PX4FMU out of the NuttX tree. Now it's just configuration. --- apps/commander/commander.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/commander/commander.c') diff --git a/apps/commander/commander.c b/apps/commander/commander.c index e00dc13d2..bf9d07c9b 100644 --- a/apps/commander/commander.c +++ b/apps/commander/commander.c @@ -61,7 +61,7 @@ #include #include #include -#include +#include #include #include #include @@ -194,7 +194,7 @@ static void buzzer_deinit() static int led_init() { - leds = open("/dev/led", O_RDONLY | O_NONBLOCK); + leds = open(LED_DEVICE_PATH, 0); if (leds < 0) { fprintf(stderr, "[commander] LED: open fail\n"); -- cgit v1.2.3