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 076d86f commit 36cc4b1Copy full SHA for 36cc4b1
api/CanMsg.h
@@ -74,9 +74,9 @@ class CanMsg : public Printable
74
75
/* Print the header. */
76
if (isStandardId())
77
- len = snprintf(buf, sizeof(buf), "[%03X] (%d) : ", id, data_length);
+ len = snprintf(buf, sizeof(buf), "[%03X] (%d) : ", getStandardId(), data_length);
78
else
79
- len = snprintf(buf, sizeof(buf), "[%08X] (%d) : ", id, data_length);
+ len = snprintf(buf, sizeof(buf), "[%08X] (%d) : ", getExtendedId(), data_length);
80
size_t n = p.write(buf, len);
81
82
/* Print the data. */
0 commit comments