AC_Sprayer: 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 f1c2e55f68
commit 48def9b8a4
1 changed files with 2 additions and 2 deletions

View File

@ -103,8 +103,8 @@ void AC_Sprayer::run(const bool true_false)
void AC_Sprayer::stop_spraying() void AC_Sprayer::stop_spraying()
{ {
SRV_Channels::set_output_limit(SRV_Channel::k_sprayer_pump, SRV_Channel::SRV_CHANNEL_LIMIT_MIN); SRV_Channels::set_output_limit(SRV_Channel::k_sprayer_pump, SRV_Channel::Limit::MIN);
SRV_Channels::set_output_limit(SRV_Channel::k_sprayer_spinner, SRV_Channel::SRV_CHANNEL_LIMIT_MIN); SRV_Channels::set_output_limit(SRV_Channel::k_sprayer_spinner, SRV_Channel::Limit::MIN);
_flags.spraying = false; _flags.spraying = false;
} }