Repository navigation
Conversation
Co-authored-by: zachvorhies <[email protected]>
Co-authored-by: zachvorhies <[email protected]>
|
Cursor Agent can help with this pull request. Just |
There was a problem hiding this comment.
This PR is being reviewed by Cursor Bugbot
Details
You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
| #ifndef FASTLED_ARM | ||
| #if defined(__SAM3X8E__) || defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MKL26Z64__) || defined(__IMXRT1062__) || defined(ARDUINO_ARCH_RENESAS_UNO) || defined(STM32F1) || defined(STM32F4) || defined(ARDUINO_GIGA) || defined(ARDUINO_GIGA_M7) || defined(NRF52_SERIES) || defined(ARDUINO_ARCH_NRF52) || defined(NRF52840_XXAA) || defined(ARDUINO_ARCH_APOLLO3) || defined(FASTLED_APOLLO3) || defined(ARDUINO_ARCH_RP2040) || defined(TARGET_RP2040) || defined(PICO_32BIT) || defined(ARDUINO_RASPBERRY_PI_PICO) || defined(ARDUINO_ARCH_SILABS) || defined(__SAMD21G18A__) || defined(__SAMD21J18A__) || defined(__SAMD21E17A__) || defined(__SAMD21E18A__) || defined(__SAMD51G19A__) || defined(__SAMD51J19A__) || defined(__SAME51J19A__) || defined(__SAMD51P19A__) || defined(__SAMD51P20A__) | ||
| #define FASTLED_IS_ARM | ||
| #define FASTLED_ARM |
There was a problem hiding this comment.
Bug: Incomplete ARM Platform Detection Causes Compilation Failures
ARM platform detection in is_arm.h is incomplete, missing macros for Teensy K66 (__MK66FX1M0__, __MK64FX512__), nRF51 (NRF51, __RFduino__, __Simblee__), STM32F2 (STM32F2XX), and Renesas (ARDUINO_ARCH_RENESAS, ARDUINO_ARCH_RENESAS_PORTENTA). This causes compilation failures as FASTLED_ARM isn't defined, triggering assertion errors in their platform headers.
Co-authored-by: zachvorhies <[email protected]>
Co-authored-by: zachvorhies <[email protected]>
Unify ARM platform detection under
FASTLED_ARMand enforce its definition.This refactoring removes the redundant
FASTLED_IS_ARMdefine, centralizing ARM detection inis_arm.h. ARM platform headers now assertFASTLED_ARMis defined, providing clearer compile-time errors and improving consistency. The existingis_arm.harchitecture was preserved and enhanced.