mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
AP_ESC_Telem: disable ESC telem with zero channels
this prevents a build error and saves flash
This commit is contained in:
parent
cd8ff2b37a
commit
3a1fc0f338
@ -2,7 +2,9 @@
|
||||
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
|
||||
#ifndef HAL_WITH_ESC_TELEM
|
||||
#if defined(NUM_SERVO_CHANNELS) && NUM_SERVO_CHANNELS == 0
|
||||
#define HAL_WITH_ESC_TELEM 0
|
||||
#elif !defined(HAL_WITH_ESC_TELEM)
|
||||
#define HAL_WITH_ESC_TELEM HAL_SUPPORT_RCOUT_SERIAL || HAL_MAX_CAN_PROTOCOL_DRIVERS
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user