mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 02:13:34 +08:00
Merge Crazyflie motor driver with FMU
Comment corrections
This commit is contained in:
committed by
Lorenz Meier
parent
e6b98b2ab8
commit
e91821d2a2
@@ -159,7 +159,11 @@ esc_calib_main(int argc, char *argv[])
|
||||
/* Read in custom low value */
|
||||
pwm_low = strtoul(myoptarg, &ep, 0);
|
||||
|
||||
if (*ep != '\0' || pwm_low < PWM_LOWEST_MIN || pwm_low > PWM_HIGHEST_MIN) {
|
||||
if (*ep != '\0'
|
||||
#if PWM_LOWEST_MIN > 0
|
||||
|| pwm_low < PWM_LOWEST_MIN
|
||||
#endif
|
||||
|| pwm_low > PWM_HIGHEST_MIN) {
|
||||
usage("low PWM invalid");
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user