From 47f3c31f54b5fe729db4a6c4cdc2030f2ffdf3d1 Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Tue, 27 Feb 2024 16:13:23 +0100 Subject: [PATCH] Limit STM32F411 to use 32 leds only. (#13249) * Add USE_LIMITED_LED_STRIP_OUTPUTS to limit certain MCUs to use maximum 32 outputs * Fixes per review from Steve * Use target.h gate --- src/main/target/STM32F411/target.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/target/STM32F411/target.h b/src/main/target/STM32F411/target.h index a19a58d15b..9e4d342e90 100644 --- a/src/main/target/STM32F411/target.h +++ b/src/main/target/STM32F411/target.h @@ -80,4 +80,8 @@ #define USE_PID_DENOM_CHECK +#ifdef USE_LED_STRIP_64 +#error USE_LED_STRIP_64 is not supported for this MCU, please use USE_LED_STRIP_32 +#endif + #define FLASH_PAGE_SIZE ((uint32_t)0x4000) // 16K sectors