tonton81 / FlexCAN_T4

FlexCAN (CAN 2.0 / CANFD) Library for Teensy 3.x and 4.0
https://forum.pjrc.com/threads/56035-FlexCAN_T4-FlexCAN-for-Teensy-4
MIT License
192 stars 63 forks source link

Updates for ISOTP write #26

Closed fredmcc closed 2 years ago

fredmcc commented 2 years ago

Fixed issue in ISOTP_OPT::write where config.len was being used incorrectly and would not work if set to something different than the default value of 8. It was incorrectly being used to set the length of the first ISO-TP CAN frame.

Added function prototypes to use config.len as the message length definition rather than having to specify size separately. Makes more sense to specify it in the config. This will not change the behavior of the existing functions so will not effect compatibility but provides a better option.