From 48def9b8a468488560237ab210629e5245b29bd7 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 25 Nov 2019 12:52:18 +1100 Subject: [PATCH] AC_Sprayer: use enum-class for SRV_CHANNEL_LIMIT_TRIM and friends --- libraries/AC_Sprayer/AC_Sprayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AC_Sprayer/AC_Sprayer.cpp b/libraries/AC_Sprayer/AC_Sprayer.cpp index dcf9c7ff4f..a935f22adc 100644 --- a/libraries/AC_Sprayer/AC_Sprayer.cpp +++ b/libraries/AC_Sprayer/AC_Sprayer.cpp @@ -103,8 +103,8 @@ void AC_Sprayer::run(const bool true_false) 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_spinner, 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::Limit::MIN); _flags.spraying = false; }