diff options
author | px4dev <px4@purgatory.org> | 2012-10-31 00:37:15 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2012-10-31 00:37:15 -0700 |
commit | 34a3b260f34398994a315388b3ffed22a1fe22fb (patch) | |
tree | cbea6c3fff4e2701921827b122df9d348c38ac1c /apps/commander/commander.c | |
parent | b685d46dbfc583a26a92f1466dca64f9d45c3c4e (diff) | |
download | px4-firmware-34a3b260f34398994a315388b3ffed22a1fe22fb.tar.gz px4-firmware-34a3b260f34398994a315388b3ffed22a1fe22fb.tar.bz2 px4-firmware-34a3b260f34398994a315388b3ffed22a1fe22fb.zip |
Move the last of the board-specific code for PX4FMU out of the NuttX tree. Now it's just configuration.
Diffstat (limited to 'apps/commander/commander.c')
-rw-r--r-- | apps/commander/commander.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <sys/prctl.h> #include <v1.0/common/mavlink.h> #include <string.h> -#include <arch/board/drv_led.h> +#include <drivers/drv_led.h> #include <drivers/drv_hrt.h> #include <drivers/drv_hrt.h> #include <drivers/drv_tone_alarm.h> @@ -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"); |