Copter: rename SPRAYER-enabled-define to SPRAYER_ENABLED

This commit is contained in:
Pierre Kancir 2018-06-04 11:17:15 +02:00 committed by Randy Mackay
parent b331ddd49b
commit b95fe2b8b1

View File

@ -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());