From c0c40216058dfd84982a25282d994f2f3877b829 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 21 Nov 2017 17:17:37 +1100 Subject: [PATCH] SRV_Channels: fix for replay --- libraries/SRV_Channel/SRV_Channel_aux.cpp | 3 +++ 1 file changed, 3 insertions(+) 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++) {