mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
Copter: CH_12 can be used with any HAL, not just HAL_PX4
This commit is contained in:
parent
8f94302348
commit
3e08132828
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user