Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork137
Commita5b8e43
committed
Fix format specifier for printing CAN message ID in CanMsg.h.
Regarding the X format specifier: C standard §7.21.6.1: "The unsigned intargument is converted to ..." On some platforms (e.g. mbed_nano), uint32_t,which is what's being printed here, is an unsigned long int, so this code causesa compiler warning. The fix is to use the format specifiers from §7.8.1,specifically PRIX32.1 parent50a27fb commita5b8e43
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
0 commit comments
Comments
(0)