Skip to content

Commit

Permalink
[radio_control] Workaround RADIO_CONTROL_NB_CHANNELS differs in drive…
Browse files Browse the repository at this point in the history
…r and radio.h

closes #700
  • Loading branch information
dewagter authored and flixr committed May 15, 2014
1 parent e6c1aa6 commit 27c1c69
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sw/airborne/inter_mcu.h
Expand Up @@ -46,6 +46,10 @@
#include "firmwares/fixedwing/main_fbw.h"

#ifndef SINGLE_MCU
// If radio_control defines
#ifdef RADIO_CONTROL_NB_CHANNEL
#undef RADIO_CONTROL_NB_CHANNEL
#endif
#include "generated/radio.h"
#define RADIO_CONTROL_NB_CHANNEL RADIO_CTL_NB
#endif
Expand Down

0 comments on commit 27c1c69

Please sign in to comment.