Browse Source

RC_Channel_aux: cycle thru all functions except k_none and k_nr_aux_servo_functions

Probably makes no difference because g_rc_function[k_none] == NULL
mission-4.1.18
Amilcar Lucas 13 years ago
parent
commit
c7d1974741
  1. 3
      libraries/RC_Channel/RC_Channel_aux.cpp

3
libraries/RC_Channel/RC_Channel_aux.cpp

@ -119,7 +119,8 @@ void update_aux_servo_function( RC_Channel_aux* rc_a, @@ -119,7 +119,8 @@ void update_aux_servo_function( RC_Channel_aux* rc_a,
void
enable_aux_servos()
{
for (uint8_t i = 0; i < RC_Channel_aux::k_nr_aux_servo_functions ; i++)
// cycle thru all functions except k_none and k_nr_aux_servo_functions
for (uint8_t i = 1; i < RC_Channel_aux::k_nr_aux_servo_functions ; i++)
{
if (g_rc_function[i]) g_rc_function[i]->enable_out();
}

Loading…
Cancel
Save