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.
2 parents 2516a69 + a5b8e43 commit 68d3e0dCopy full SHA for 68d3e0d
api/CanMsg.h
@@ -12,7 +12,7 @@
12
* INCLUDE
13
**************************************************************************************/
14
15
-#include <stdint.h>
+#include <inttypes.h>
16
#include <string.h>
17
18
#include <Arduino.h>
@@ -68,7 +68,7 @@ class CanMsg : public Printable
68
size_t len = 0;
69
70
/* Print the header. */
71
- len = snprintf(buf, sizeof(buf), "[%08X] (%d) : ", id, data_length);
+ len = snprintf(buf, sizeof(buf), "[%08" PRIX32 "] (%d) : ", id, data_length);
72
size_t n = p.write(buf, len);
73
74
/* Print the data. */
0 commit comments