Skip to content

Commit

Permalink
AP_Radio: correct guards around code in AP_Radio_cc2500
Browse files Browse the repository at this point in the history
these were missed in a cleanup; the header is already guarded with these
  • Loading branch information
peterbarker committed Mar 22, 2024
1 parent fbb9e3e commit 1928f06
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libraries/AP_Radio/AP_Radio_cc2500.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
Many thanks to the cleanflight and betaflight projects
*/
#include "AP_Radio_config.h"

#if AP_RADIO_CC2500_ENABLED

#include <AP_HAL/AP_HAL.h>

// #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_Radio_cc2500.h"
#include <utility>
Expand Down Expand Up @@ -1563,5 +1564,4 @@ void AP_Radio_cc2500::check_double_bind(void)
radio_singleton->nextChannel(1);
}

#endif // HAL_RCINPUT_WITH_AP_RADIO
#endif // CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
#endif // AP_RADIO_CC2500_ENABLED

0 comments on commit 1928f06

Please sign in to comment.