void RC_Channel::init_aux() { aux_switch_pos_t position; if (!read_3pos_switch(position)) { position = aux_switch_pos_t::LOW; } init_aux_function((aux_func_t)option.get(), position); }
void RC_Channel::init_aux() { const aux_switch_pos_t position = read_3pos_switch(); set_old_switch_position(position); init_aux_function((aux_func_t)option.get(), position); }