mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 23:43:34 +08:00
Fix bugs found through compiler warnings
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user