diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-10-30 09:04:03 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-10-30 09:04:03 +0100 |
commit | f0466143de18aedb5ada6f01b3c6435c9a0dc82a (patch) | |
tree | a5226c642e290a2820ad03878cb113735633bde8 /src/systemcmds/pwm/pwm.c | |
parent | 44f88bf0a741fe530dea1c8b3137f30117a7b4b5 (diff) | |
download | px4-firmware-f0466143de18aedb5ada6f01b3c6435c9a0dc82a.tar.gz px4-firmware-f0466143de18aedb5ada6f01b3c6435c9a0dc82a.tar.bz2 px4-firmware-f0466143de18aedb5ada6f01b3c6435c9a0dc82a.zip |
Minor warning and no error in case of zero value for disarmed
Diffstat (limited to 'src/systemcmds/pwm/pwm.c')
-rw-r--r-- | src/systemcmds/pwm/pwm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemcmds/pwm/pwm.c b/src/systemcmds/pwm/pwm.c index 3185e4371..09a934400 100644 --- a/src/systemcmds/pwm/pwm.c +++ b/src/systemcmds/pwm/pwm.c @@ -335,7 +335,7 @@ pwm_main(int argc, char *argv[]) usage("no channels set"); } if (pwm_value == 0) - usage("no PWM value provided"); + warnx("reading disarmed value of zero, disabling disarmed PWM"); struct pwm_output_values pwm_values = {.values = {0}, .channel_count = 0}; @@ -343,7 +343,7 @@ pwm_main(int argc, char *argv[]) if (set_mask & 1<<i) { pwm_values.values[i] = pwm_value; if (print_verbose) - warnx("Channel %d: disarmed PWM: %d", i+1, pwm_value); + warnx("channel %d: disarmed PWM: %d", i+1, pwm_value); } pwm_values.channel_count++; } |