diff --git a/libraries/SRV_Channel/SRV_Channel_aux.cpp b/libraries/SRV_Channel/SRV_Channel_aux.cpp index 1aae6e822c..dd304067e7 100644 --- a/libraries/SRV_Channel/SRV_Channel_aux.cpp +++ b/libraries/SRV_Channel/SRV_Channel_aux.cpp @@ -128,6 +128,9 @@ void SRV_Channel::aux_servo_function_setup(void) /// setup the output range types of all functions void SRV_Channels::update_aux_servo_function(void) { + if (!channels) { + return; + } function_mask.clearall(); for (uint8_t i = 0; i < SRV_Channel::k_nr_aux_servo_functions; i++) {