gandrewstone / LIN

The LIN protocol implemented over Arduino APIs (Serial and Digital IO)
119 stars 46 forks source link

Header guard for lin.h and checksum usage on diagnostic frames fixed. #11

Open ChrisPHL opened 3 years ago

philwmcdonald commented 3 years ago

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;