mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 13:38:38 -04:00
AP_RCTelemetry: fixed check for BLHeli support
This commit is contained in:
parent
01b61ea646
commit
dd4bd3de69
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user