AP_Winch: use enum-class for SRV_CHANNEL_LIMIT_TRIM and friends

This commit is contained in:
Peter Barker 2019-11-25 12:52:18 +11:00 committed by Andrew Tridgell
parent ef6a34a9f0
commit 4c9c5767ed
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ void AP_Winch_Servo::update()
// if not doing any control output trim value // if not doing any control output trim value
if (config.state == AP_Winch::STATE_RELAXED) { if (config.state == AP_Winch::STATE_RELAXED) {
SRV_Channels::set_output_limit(SRV_Channel::k_winch, SRV_Channel::SRV_CHANNEL_LIMIT_TRIM); SRV_Channels::set_output_limit(SRV_Channel::k_winch, SRV_Channel::Limit::TRIM);
return; return;
} }