mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
SRV_Channel: remove default case in get_limit_pwm
All cases are currently handled, and this is something people should probably think about if they're introducing another case!
This commit is contained in:
parent
72e6446204
commit
708a6f99a6
@ -182,9 +182,9 @@ uint16_t SRV_Channel::get_limit_pwm(Limit limit) const
|
||||
case Limit::MAX:
|
||||
return reversed?servo_min:servo_max;
|
||||
case Limit::ZERO_PWM:
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
// return true if function is for a multicopter motor
|
||||
|
Loading…
Reference in New Issue
Block a user