SRV_Channel: Change from direct value to defined value

This commit is contained in:
murata 2020-01-31 08:08:22 +09:00 committed by Peter Barker
parent c8395bb2c1
commit 58c823acc1
1 changed files with 1 additions and 1 deletions

View File

@ -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<<i)) {
hal.rcout->enable_ch(i);
}