Merge pull request #573 from julianoes/hotfix_esc_calib

ESC calib: low PWM value was not set
This commit is contained in:
Lorenz Meier 2014-01-01 23:53:21 -08:00
commit b345202ae7

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;