Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ChrisPHL
Copy link

@ChrisPHL ChrisPHL commented Jan 4, 2021

No description provided.

Header guard added to lin.h.
lin.cpp: Use checksum calculation of LIN protocol version 1.x for diagnostic frames.
@philwmcdonald
Copy link

philwmcdonald commented Jul 25, 2021

Additionally in Lin::recv():
if (dataChecksum(message,nBytes,idByte) == cksum) bytesRcvd = 0xff;
should probably be:
if (dataChecksum(message,nBytes,(addr == 0x3d) ? 0: idByte) != readByte) bytesRcvd = 0xff;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants