Skip to content

boards: tiva: Fix CC13xx red LED selection#19332

Merged
xiaoxiang781216 merged 1 commit into
apache:masterfrom
Old-Ding:codex/cc13xx-userled-rled-compare
Jul 6, 2026
Merged

boards: tiva: Fix CC13xx red LED selection#19332
xiaoxiang781216 merged 1 commit into
apache:masterfrom
Old-Ding:codex/cc13xx-userled-rled-compare

Conversation

@Old-Ding

@Old-Ding Old-Ding commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • compare led against BOARD_RLED in the CC1310 user LED handler
  • make the same fix in the CC1312R1 user LED handler

Rationale

BOARD_RLED is 1, so else if (led = BOARD_RLED) always selects the red LED for every non-green LED id. Use comparison so invalid LED ids continue to take the existing
eturn path.

Testing

  • git diff --check
  • git show --stat --check --format=fuller HEAD
  • git ls-files --eol -- boards\arm\tiva\launchxl-cc1310\src\cc1310_userleds.c boards\arm\tiva\launchxl-cc1312r1\src\cc1312_userleds.c

Compare the requested LED id with BOARD_RLED instead of assigning it. BOARD_RLED is nonzero, so the assignment made every non-green LED request select the red LED instead of rejecting invalid ids.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
@github-actions github-actions Bot added Size: XS The size of the change in this PR is very small Board: arm labels Jul 6, 2026
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

MemBrowse Memory Report

No memory changes detected for:

@xiaoxiang781216 xiaoxiang781216 merged commit d81c8bc into apache:master Jul 6, 2026
56 of 61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Board: arm Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants