Old-Ding opened a new pull request, #19332:
URL: https://github.com/apache/nuttx/pull/19332

   ## 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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to