You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
follow-up(#5170): STM32 clockless driver dereferences a null port under FASTLED_FORCE_SOFTWARE_PINS #5184
coderabbit-followupFollow-up for a CodeRabbit finding missed at merge timesanitizedTitle, body and conversation screened; review text requires separate screening.
With FASTLED_FORCE_SOFTWARE_PINS, fastpin_arm_stm32.h skips the pin tables and FastPin<PIN> becomes the software template, whose port() returns nullptr. The STM32 clockless driver takes FastPin<DATA_PIN>::port() and writes through it, so a sketch that builds can fault at the first show().
Suggested fix: Give the clockless driver its own hardware pin type (as GIGA does with GigaHwPin), so it keeps a real GPIO register in forced mode. Otherwise reject forced mode with the STM32 clockless driver using a static_assert.
Missed CodeRabbit review: merged before the review was read (clud pr_merge_watch bug, fixed in talos-hq/clud#2719).
coderabbit-followupFollow-up for a CodeRabbit finding missed at merge timesanitizedTitle, body and conversation screened; review text requires separate screening.
Activity
fix(stm32): use FL_STATIC_ASSERT in forced-software-pin clockless gua…
fix(stm32): fail clockless build under FASTLED_FORCE_SOFTWARE_PINS in…