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
This commit is contained in:
Amilcar Lucas 2012-08-11 13:43:21 +02:00
parent 780b469b11
commit c7d1974741
1 changed files with 2 additions and 1 deletions

View File

@ -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();
}