aboutsummaryrefslogtreecommitdiff
path: root/apps/commander/commander.c
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2012-10-31 00:37:15 -0700
committerpx4dev <px4@purgatory.org>2012-10-31 00:37:15 -0700
commit34a3b260f34398994a315388b3ffed22a1fe22fb (patch)
treecbea6c3fff4e2701921827b122df9d348c38ac1c /apps/commander/commander.c
parentb685d46dbfc583a26a92f1466dca64f9d45c3c4e (diff)
downloadpx4-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.c4
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");