fixed making RADIO_CONTROL_KILL_SWITCH optional

This commit is contained in:
Antoine Drouin
2010-06-21 23:40:07 +00:00
parent 48d2c05fd0
commit 066e25bdcb
+1 -1
View File
@@ -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; \