diff options
Diffstat (limited to 'src/systemcmds')
-rw-r--r-- | src/systemcmds/esc_calib/esc_calib.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/systemcmds/esc_calib/esc_calib.c b/src/systemcmds/esc_calib/esc_calib.c index aee26680c..d74010553 100644 --- a/src/systemcmds/esc_calib/esc_calib.c +++ b/src/systemcmds/esc_calib/esc_calib.c @@ -168,8 +168,13 @@ esc_calib_main(int argc, char *argv[]) } } - if (set_mask == 0) + if (set_mask == 0) { usage("no channels chosen"); + } + + if (pwm_low > pwm_high) { + usage("low pwm is higher than high pwm"); + } /* make sure no other source is publishing control values now */ struct actuator_controls_s actuators; |