AP_RCTelemetry: fixed check for BLHeli support

This commit is contained in:
Andrew Tridgell 2024-02-02 10:53:50 +11:00
parent 01b61ea646
commit dd4bd3de69

View File

@ -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
@ -579,7 +577,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) {