ESC calib: low PWM value was not set

This commit is contained in:
Julian Oes 2014-01-02 08:28:33 +01:00
parent 1d9e8a7b72
commit 1a21dcd34d
1 changed files with 1 additions and 0 deletions

View File

@ -148,6 +148,7 @@ esc_calib_main(int argc, char *argv[])
case 'l':
/* Read in custom low value */
pwm_low = strtoul(optarg, &ep, 0);
if (*ep != '\0' || pwm_low < PWM_LOWEST_MIN || pwm_low > PWM_HIGHEST_MIN)
usage("low PWM invalid");
break;