@ -366,20 +366,6 @@ void RC_Channel_Copter::do_aux_function(const aux_func_t ch_option, const aux_sw
}
break;
case LOST_COPTER_SOUND:
switch (ch_flag) {
case HIGH:
AP_Notify::flags.vehicle_lost = true;
case MIDDLE:
// nothing
case LOW:
AP_Notify::flags.vehicle_lost = false;
case MOTOR_ESTOP:
// Turn on Emergency Stop logic when channel is high
copter.set_motor_emergency_stop(ch_flag == HIGH);
@ -342,7 +342,7 @@ void Copter::lost_vehicle_check()
static uint8_t soundalarm_counter;
// disable if aux switch is setup to vehicle alarm as the two could interfere
if (rc().find_channel_for_option(RC_Channel::aux_func::LOST_COPTER_SOUND)) {
if (rc().find_channel_for_option(RC_Channel::aux_func::LOST_VEHICLE_SOUND)) {
return;