From b95fe2b8b13f71b40cd86b6bdae8d4526f3ed1c0 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Mon, 4 Jun 2018 11:17:15 +0200 Subject: [PATCH] Copter: rename SPRAYER-enabled-define to SPRAYER_ENABLED --- ArduCopter/switches.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/switches.cpp b/ArduCopter/switches.cpp index 84210bd0de..40cffc9413 100644 --- a/ArduCopter/switches.cpp +++ b/ArduCopter/switches.cpp @@ -421,7 +421,7 @@ void Copter::do_aux_switch_function(int8_t ch_function, uint8_t ch_flag) break; case AUXSW_SPRAYER: -#if SPRAYER == ENABLED +#if SPRAYER_ENABLED == ENABLED sprayer.run(ch_flag == AUX_SWITCH_HIGH); // if we are disarmed the pilot must want to test the pump sprayer.test_pump((ch_flag == AUX_SWITCH_HIGH) && !motors->armed());