Skip to content

Commit

Permalink
AP_RCTelemetry: fixed check for BLHeli support
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Feb 1, 2024
1 parent 04fc52d commit 98cec29
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libraries/AP_RCTelemetry/AP_Spektrum_Telem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@
#include <AP_Baro/AP_Baro.h>
#include <AP_RTC/AP_RTC.h>
#include <AP_SerialManager/AP_SerialManager.h>
#ifdef HAVE_AP_BLHELI_SUPPORT
#include <AP_BLheli/AP_BLHeli.h>
#endif
#include <AP_BLHeli/AP_BLHeli.h>
#include <math.h>

#if HAL_SPEKTRUM_TELEM_ENABLED
Expand Down Expand Up @@ -564,7 +562,7 @@ void AP_Spektrum_Telem::calc_gps_status()
// prepare ESC information - B/E
void AP_Spektrum_Telem::calc_esc()
{
#ifdef HAVE_AP_BLHELI_SUPPORT
#if HAVE_AP_BLHELI_SUPPORT
AP_BLHeli* blh = AP_BLHeli::get_singleton();

if (blh == nullptr) {
Expand Down

0 comments on commit 98cec29

Please sign in to comment.