We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21eb965 commit 5ba5010Copy full SHA for 5ba5010
api/CanMsg.h
@@ -51,7 +51,11 @@ class CanMsg : public Printable
51
52
CanMsg() : CanMsg(0, 0, nullptr) { }
53
54
- CanMsg(CanMsg const & other) : CanMsg(other.id, other.data_length, other.data) {
+ CanMsg(CanMsg const & other) {
55
+ id = other.id;
56
+ data_length = other.data_length;
57
+ if (data_length > 0)
58
+ memcpy(data, other.data, data_length);
59
}
60
61
virtual ~CanMsg() { }
0 commit comments