diff options
author | Don Gagne <don@thegagnes.com> | 2014-06-29 12:01:43 -0700 |
---|---|---|
committer | Don Gagne <don@thegagnes.com> | 2014-06-29 12:01:43 -0700 |
commit | d5b5dcef24a7f5c7b2ed98081dd69a05f8d46959 (patch) | |
tree | 7e0e12ed525d6699c0128eb4137061a6ad0248f3 /src/modules/gpio_led | |
parent | 94c69e11ae1ec44c80eec1c979201c7d7e51cdb0 (diff) | |
download | px4-firmware-d5b5dcef24a7f5c7b2ed98081dd69a05f8d46959.tar.gz px4-firmware-d5b5dcef24a7f5c7b2ed98081dd69a05f8d46959.tar.bz2 px4-firmware-d5b5dcef24a7f5c7b2ed98081dd69a05f8d46959.zip |
Fix bugs found through compiler warnings
Diffstat (limited to 'src/modules/gpio_led')
-rw-r--r-- | src/modules/gpio_led/gpio_led.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/gpio_led/gpio_led.c b/src/modules/gpio_led/gpio_led.c index 839a7890b..1fc6d1295 100644 --- a/src/modules/gpio_led/gpio_led.c +++ b/src/modules/gpio_led/gpio_led.c @@ -189,7 +189,8 @@ int gpio_led_main(int argc, char *argv[]) } else if (!strcmp(argv[1], "stop")) { if (gpio_led_started) { gpio_led_started = false; - warnx("stop"); + // FIXME: Is this correct? changed from warnx + errx(0, "stop"); } else { errx(1, "not running"); |