SRV_Channel: add define for SRV_Channels being compiled in or not

This commit is contained in:
Peter Barker 2024-03-07 18:52:59 +11:00 committed by Andrew Tridgell
parent e22a00680b
commit 34603bbfd0
1 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,10 @@
#include <AP_HAL/AP_HAL_Boards.h>
#ifndef AP_SRV_CHANNELS_ENABLED
#define AP_SRV_CHANNELS_ENABLED 1
#endif
#ifndef NUM_SERVO_CHANNELS
#if BOARD_FLASH_SIZE > 1024
#define NUM_SERVO_CHANNELS 32