Copter: rename SPRAYER-enabled-define to SPRAYER_ENABLED
This commit is contained in:
parent
b331ddd49b
commit
b95fe2b8b1
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user