mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-06 07:53:43 +08:00
fixed making RADIO_CONTROL_KILL_SWITCH optional
This commit is contained in:
@@ -97,7 +97,7 @@ extern uint8_t telemetry_mode_Main_DefaultChannel;
|
||||
#ifdef USE_RADIO_CONTROL
|
||||
#define PERIODIC_SEND_RC(_chan) DOWNLINK_SEND_RC(_chan, RADIO_CONTROL_NB_CHANNEL, radio_control.values)
|
||||
#if defined RADIO_CONTROL_KILL_SWITCH
|
||||
#define PERIODIC_SEND_BOOZ2_RADIO_CONTROL(_chan, _kill_switch) SEND_BOOZ2_RADIO_CONTROL( _chan, &radio_control.values[RADIO_CONTROL_KILL_SWITCH])
|
||||
#define PERIODIC_SEND_BOOZ2_RADIO_CONTROL(_chan) SEND_BOOZ2_RADIO_CONTROL( _chan, &radio_control.values[RADIO_CONTROL_KILL_SWITCH])
|
||||
#else /* ! RADIO_CONTROL_KILL_SWITCH */
|
||||
#define PERIODIC_SEND_BOOZ2_RADIO_CONTROL(_chan) { \
|
||||
int16_t foo = -42; \
|
||||
|
||||
Reference in New Issue
Block a user