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(#5167): SAMD getPinMapping rejects valid variant pins at or above PINS_COUNT #5185
coderabbit-followupFollow-up for a CodeRabbit finding missed at merge timesanitizedTitle, body and conversation screened; review text requires separate screening.
Unaddressed CodeRabbit review finding(s) from #5167, checked against current master.
1. src/platforms/arm/samd/pin_samd_native.hpp:68
getPinMapping() rejects pin >= PINS_COUNT. On the SparkFun SAMD21 Dev board, PIN_LED_TXL is 26 and PINS_COUNT is also 26, but g_APinDescription[26] (PA27) is a valid entry. fl::pinMode/fl::digitalWrite on that pin silently do nothing.
Suggested fix: Bound the lookup by the real size of g_APinDescription for the variant (or a per-variant override such as NUM_DIGITAL_PINS/the table length), not PINS_COUNT. Add a host test for that board's table.
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(samd): runtime-safe pin table bound; drop PIN_ATN; move defs to .…
fix(samd): accept variant pins at or above PINS_COUNT in getPinMapping (