OceanfromXiaomi opened a new pull request, #17804:
URL: https://github.com/apache/nuttx/pull/17804

   Fix incorrect and non-existent flag usage in LIN handling:
   
   - Replace undefined CANFD_FLAGS_BITS usage with valid bit definitions.
   - Reassign CAN_TCF_FLAG to an available flag bit, as it is not defined in 
can.h.
   - Add an identifier for LIN noise error frames.
   
   *Note: Please adhere to [Contributing 
Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
   
   ## Summary
   
   This change fixes several issues in LIN flag handling where undefined or
   incorrect CAN flag definitions were used.
   
   Specifically, it replaces non-existent flag macros with valid bit values,
   reassigns flags to available bits, and adds a new identifier for LIN noise
   error frames.
   
   ## Impact
   
   - Fixes incorrect flag usage without changing external APIs.
   - Improves correctness of LIN/CAN flag handling.
   - No impact on build process, security, or compatibility.
   
   ## Testing
   
   - Built successfully with LIN support enabled.
   - Verified LIN communication behavior using existing test setup.
   - No regressions observed in CAN/LIN related functionality.
   


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