mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 09:28:31 -04:00
RC_Channel: don't panic on unsupported RCn_OPTION in SITL
This commit is contained in:
parent
9ffc0f5a3a
commit
c5abcb5584
@ -476,10 +476,7 @@ void RC_Channel::init_aux_function(const aux_func_t ch_option, const aux_switch_
|
|||||||
do_aux_function(ch_option, ch_flag);
|
do_aux_function(ch_option, ch_flag);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
gcs().send_text(MAV_SEVERITY_WARNING, "Failed to initialise RC function (%u)", (unsigned)ch_option);
|
gcs().send_text(MAV_SEVERITY_WARNING, "Unsupported RC function (%u)", (unsigned)ch_option);
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
|
||||||
AP_HAL::panic("RC function (%u) initialisation not handled", (unsigned)ch_option);
|
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user