Copter: CH_12 can be used with any HAL, not just HAL_PX4

This commit is contained in:
Andrew Tridgell 2018-06-25 17:31:46 +10:00 committed by Francisco Ferreira
parent 8f94302348
commit 3e08132828

View File

@ -146,10 +146,7 @@ void Copter::read_aux_switches()
read_aux_switch(CH_9, aux_con.CH9_flag, g.ch9_option); read_aux_switch(CH_9, aux_con.CH9_flag, g.ch9_option);
read_aux_switch(CH_10, aux_con.CH10_flag, g.ch10_option); read_aux_switch(CH_10, aux_con.CH10_flag, g.ch10_option);
read_aux_switch(CH_11, aux_con.CH11_flag, g.ch11_option); read_aux_switch(CH_11, aux_con.CH11_flag, g.ch11_option);
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN
read_aux_switch(CH_12, aux_con.CH12_flag, g.ch12_option); read_aux_switch(CH_12, aux_con.CH12_flag, g.ch12_option);
#endif
} }
#undef read_aux_switch #undef read_aux_switch