aboutsummaryrefslogtreecommitdiff
path: root/src/systemcmds
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-07-19 14:39:19 +0200
committerThomas Gubler <thomasgubler@gmail.com>2014-07-19 14:39:19 +0200
commitde0dd71061b1b388e87c25a3d4fd0080f0c9cf8b (patch)
tree6ecd69b602d1bb50754416c496415802407ee9f5 /src/systemcmds
parent78b8e4d59f606eb56a475b69d61da8a83613d73d (diff)
downloadpx4-firmware-de0dd71061b1b388e87c25a3d4fd0080f0c9cf8b.tar.gz
px4-firmware-de0dd71061b1b388e87c25a3d4fd0080f0c9cf8b.tar.bz2
px4-firmware-de0dd71061b1b388e87c25a3d4fd0080f0c9cf8b.zip
pwm: add missing exit
Diffstat (limited to 'src/systemcmds')
-rw-r--r--src/systemcmds/pwm/pwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemcmds/pwm/pwm.c b/src/systemcmds/pwm/pwm.c
index 77d8ef8db..403567cb4 100644
--- a/src/systemcmds/pwm/pwm.c
+++ b/src/systemcmds/pwm/pwm.c
@@ -70,7 +70,7 @@ usage(const char *reason)
{
if (reason != NULL)
warnx("%s", reason);
- errx(1,
+ errx(1,
"usage:\n"
"pwm arm|disarm|rate|failsafe|disarmed|min|max|test|info ...\n"
"\n"
@@ -649,7 +649,7 @@ pwm_main(int argc, char *argv[])
ret = ioctl(fd, PWM_SERVO_SET_FORCE_FAILSAFE, 0);
}
}
-
+ exit(0);
}
usage("specify arm|disarm|rate|failsafe|disarmed|min|max|test|info");