MarkusLange / Teensy_3.x_4.x_and_LC_LIN_Master

LIN Master for Teensy 3.x, 4.x and LC
14 stars 3 forks source link

Wrong enhanced checksum #6

Closed SteB8Pro closed 1 year ago

SteB8Pro commented 2 years ago

Hello, I think I found a mistake. From the information I found on the LIN 2.x standard, the enhanced checksum should be calculated using the protected id and not the raw id. I fixed the issue replacing PID with send_pid in line 424 of lin_bus.cpp. I hope this information can be helpful.

MarkusLange commented 1 year ago

Oh yes you are right Link grafik grafik It says the PID not the FID, correct it thank you

MarkusLange commented 1 year ago

Closed thanks