diff --git a/api/CanMsg.h b/api/CanMsg.h index 5b120344..522e6541 100644 --- a/api/CanMsg.h +++ b/api/CanMsg.h @@ -12,7 +12,7 @@ * INCLUDE **************************************************************************************/ -#include +#include #include #include @@ -68,7 +68,7 @@ class CanMsg : public Printable size_t len = 0; /* Print the header. */ - len = snprintf(buf, sizeof(buf), "[%08X] (%d) : ", id, data_length); + len = snprintf(buf, sizeof(buf), "[%08" PRIX32 "] (%d) : ", id, data_length); size_t n = p.write(buf, len); /* Print the data. */