mirror of https://github.com/ArduPilot/ardupilot
AP_Radio: correct guards around code in AP_Radio_cc2500
these were missed in a cleanup; the header is already guarded with these
This commit is contained in:
parent
1f3b4c47a0
commit
58c0823264
|
@ -3,13 +3,14 @@
|
||||||
|
|
||||||
Many thanks to the cleanflight and betaflight projects
|
Many thanks to the cleanflight and betaflight projects
|
||||||
*/
|
*/
|
||||||
|
#include "AP_Radio_config.h"
|
||||||
|
|
||||||
|
#if AP_RADIO_CC2500_ENABLED
|
||||||
|
|
||||||
#include <AP_HAL/AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
|
|
||||||
// #pragma GCC optimize("O0")
|
// #pragma GCC optimize("O0")
|
||||||
|
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
|
|
||||||
#if HAL_RCINPUT_WITH_AP_RADIO
|
|
||||||
|
|
||||||
#include <AP_Math/AP_Math.h>
|
#include <AP_Math/AP_Math.h>
|
||||||
#include "AP_Radio_cc2500.h"
|
#include "AP_Radio_cc2500.h"
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
@ -1563,5 +1564,4 @@ void AP_Radio_cc2500::check_double_bind(void)
|
||||||
radio_singleton->nextChannel(1);
|
radio_singleton->nextChannel(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // HAL_RCINPUT_WITH_AP_RADIO
|
#endif // AP_RADIO_CC2500_ENABLED
|
||||||
#endif // CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
|
|
||||||
|
|
Loading…
Reference in New Issue