From 9e4d1235acd52f2bf80883f03ab49e82c746341b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Thu, 27 Apr 2017 17:55:54 +0200 Subject: [PATCH] pwm command: fix -e param (it was just ignored) to keep the behavior the same, remove the -e flags from all pwm commands that use it in the scripts. --- ROMFS/px4fmu_common/init.d/rc.interface | 10 +++++----- src/systemcmds/pwm/pwm.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d/rc.interface b/ROMFS/px4fmu_common/init.d/rc.interface index 41a8bed34f..b24d83d139 100644 --- a/ROMFS/px4fmu_common/init.d/rc.interface +++ b/ROMFS/px4fmu_common/init.d/rc.interface @@ -198,16 +198,16 @@ then # if [ $PWM_AUX_RATE != none ] then - pwm rate -e -c ${PWM_AUX_OUT} -r ${PWM_AUX_RATE} -d ${OUTPUT_AUX_DEV} + pwm rate -c ${PWM_AUX_OUT} -r ${PWM_AUX_RATE} -d ${OUTPUT_AUX_DEV} fi if [ $PWM_AUX_MIN != none ] then - pwm min -e -c ${PWM_AUX_OUT} -p ${PWM_AUX_MIN} -d ${OUTPUT_AUX_DEV} + pwm min -c ${PWM_AUX_OUT} -p ${PWM_AUX_MIN} -d ${OUTPUT_AUX_DEV} fi if [ $PWM_AUX_MAX != none ] then - pwm max -e -c ${PWM_AUX_OUT} -p ${PWM_AUX_MAX} -d ${OUTPUT_AUX_DEV} + pwm max -c ${PWM_AUX_OUT} -p ${PWM_AUX_MAX} -d ${OUTPUT_AUX_DEV} fi fi @@ -225,12 +225,12 @@ then # if [ $PWM_AUX_DISARMED != none -a $PWM_ACHDIS != none ] then - pwm disarmed -e -c ${PWM_ACHDIS} -p ${PWM_AUX_DISARMED} -d ${OUTPUT_AUX_DEV} + pwm disarmed -c ${PWM_ACHDIS} -p ${PWM_AUX_DISARMED} -d ${OUTPUT_AUX_DEV} fi if [ $FAILSAFE_AUX != none ] then - pwm failsafe -e -d ${OUTPUT_AUX_DEV} ${FAILSAFE} + pwm failsafe -d ${OUTPUT_AUX_DEV} ${FAILSAFE} fi fi diff --git a/src/systemcmds/pwm/pwm.c b/src/systemcmds/pwm/pwm.c index baa9c31270..67958578c1 100644 --- a/src/systemcmds/pwm/pwm.c +++ b/src/systemcmds/pwm/pwm.c @@ -210,7 +210,7 @@ pwm_main(int argc, char *argv[]) break; case 'e': - error_on_warn = false; + error_on_warn = true; break; case 'c':