gandrewstone / LIN

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

Add header guard to lin.h file. #10

Open ChrisPHL opened 3 years ago

ChrisPHL commented 3 years ago

The code in lin.h file should be surrounded by header guard like this:

#ifndef LIN_H_
#define LIN_H_

// Code goes here.

#endif // LIN_H_

This way it can be included from several files at the same time without having problems of "redeclarations".

Have a nice day! :-)

Chris

gandrewstone commented 3 years ago

I've lost my LIN test setup. Can you make a PR with this and your prior report and if it works for you, I'll merge it. I hesitate to make any changes at all without at least a basic test, although this one ought to be completely innocuous....

ChrisPHL commented 3 years ago

I'll do! :-) This one works for me perfectly of course. I did test the diagnostic checksum utilizing a Saleae clone logic analyzer. It works for me perfectly, too.

ChrisPHL commented 3 years ago

Btw: The Merge request is waiting... ;-)