From 58c823acc18564b2204e7dde75d50c54d52829e4 Mon Sep 17 00:00:00 2001 From: murata Date: Fri, 31 Jan 2020 08:08:22 +0900 Subject: [PATCH] SRV_Channel: Change from direct value to defined value --- libraries/SRV_Channel/SRV_Channel_aux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/SRV_Channel/SRV_Channel_aux.cpp b/libraries/SRV_Channel/SRV_Channel_aux.cpp index 00d18ca32c..852d7430af 100644 --- a/libraries/SRV_Channel/SRV_Channel_aux.cpp +++ b/libraries/SRV_Channel/SRV_Channel_aux.cpp @@ -210,7 +210,7 @@ void SRV_Channels::enable_aux_servos() /// enable output channels using a channel mask void SRV_Channels::enable_by_mask(uint16_t mask) { - for (uint8_t i = 0; i < 16; i++) { + for (uint8_t i = 0; i < NUM_SERVO_CHANNELS; i++) { if (mask & (1U<enable_ch(i); }