Skip to content

Commit

Permalink
N2kCANMsg: Proper C++ style initialization of class members
Browse files Browse the repository at this point in the history
  • Loading branch information
KimBP committed Nov 7, 2016
1 parent 1bce0c5 commit 2905054
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions N2kCANMsg.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ Author: Timo Lappalainen
class tN2kCANMsg
{
public:
tN2kCANMsg()
: Ready(false),FreeMsg(true),SystemMessage(false) {
N2kMsg.Clear();
}
tN2kMsg N2kMsg;
bool Ready; // Ready for handling
bool FreeMsg; // Msg is free for fill up
Expand Down

0 comments on commit 2905054

Please sign in to comment.