diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-10-31 17:09:11 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-10-31 17:09:11 +0100 |
commit | fbdf30b7d4da08fe5505d3eb74e8e9a5d0a35d1f (patch) | |
tree | 34f5d211e794a7a131240255db253ca718751726 /apps/commander/commander.c | |
parent | 0ddfd7c75c1f692fe83fcc88f832b42e2b04f0af (diff) | |
parent | 34a3b260f34398994a315388b3ffed22a1fe22fb (diff) | |
download | px4-firmware-fbdf30b7d4da08fe5505d3eb74e8e9a5d0a35d1f.tar.gz px4-firmware-fbdf30b7d4da08fe5505d3eb74e8e9a5d0a35d1f.tar.bz2 px4-firmware-fbdf30b7d4da08fe5505d3eb74e8e9a5d0a35d1f.zip |
Merge branch 'master' of github.com:PX4/Firmware
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 f2d92dc11..e2478b4ec 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"); |