mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-08 06:34:22 -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_Baro/AP_Baro.h>
|
||||||
#include <AP_RTC/AP_RTC.h>
|
#include <AP_RTC/AP_RTC.h>
|
||||||
#include <AP_SerialManager/AP_SerialManager.h>
|
#include <AP_SerialManager/AP_SerialManager.h>
|
||||||
#ifdef HAVE_AP_BLHELI_SUPPORT
|
#include <AP_BLHeli/AP_BLHeli.h>
|
||||||
#include <AP_BLheli/AP_BLHeli.h>
|
|
||||||
#endif
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#if HAL_SPEKTRUM_TELEM_ENABLED
|
#if HAL_SPEKTRUM_TELEM_ENABLED
|
||||||
@ -579,7 +577,7 @@ void AP_Spektrum_Telem::calc_gps_status()
|
|||||||
// prepare ESC information - B/E
|
// prepare ESC information - B/E
|
||||||
void AP_Spektrum_Telem::calc_esc()
|
void AP_Spektrum_Telem::calc_esc()
|
||||||
{
|
{
|
||||||
#ifdef HAVE_AP_BLHELI_SUPPORT
|
#if HAVE_AP_BLHELI_SUPPORT
|
||||||
AP_BLHeli* blh = AP_BLHeli::get_singleton();
|
AP_BLHeli* blh = AP_BLHeli::get_singleton();
|
||||||
|
|
||||||
if (blh == nullptr) {
|
if (blh == nullptr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user