From cf7da64e281a33ec367d57276bc17becb38f9dd4 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 1 Dec 2022 11:36:20 +1100 Subject: [PATCH] SRV_Channel: move AP_Periph config of NUM_SERVO_CHANNELS into chibios_hwdef.py --- libraries/SRV_Channel/SRV_Channel_config.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libraries/SRV_Channel/SRV_Channel_config.h b/libraries/SRV_Channel/SRV_Channel_config.h index 2ab5b59671..12ffbc87a9 100644 --- a/libraries/SRV_Channel/SRV_Channel_config.h +++ b/libraries/SRV_Channel/SRV_Channel_config.h @@ -3,15 +3,9 @@ #include #ifndef NUM_SERVO_CHANNELS -#if defined(HAL_BUILD_AP_PERIPH) && defined(HAL_PWM_COUNT) - #define NUM_SERVO_CHANNELS HAL_PWM_COUNT -#elif defined(HAL_BUILD_AP_PERIPH) - #define NUM_SERVO_CHANNELS 0 -#else #if !HAL_MINIMIZE_FEATURES && BOARD_FLASH_SIZE > 1024 #define NUM_SERVO_CHANNELS 32 #else #define NUM_SERVO_CHANNELS 16 #endif #endif -#endif