Open mikenz opened 8 years ago
Just enter it directly as a u4_t.
eg { 0x01, 0x58, 0xA5, 0xA2 } would end up as FFFFA5A2
{ 0x01, 0x58, 0xA5, 0xA2 }
FFFFA5A2
Alternatively here's a correct msbf4_read for use in the .ino files #define msbf4_read(p) (((u4_t)p[0] << 8 | p[1]) << 8 | p[2]) << 8 | p[3]
msbf4_read
#define msbf4_read(p) (((u4_t)p[0] << 8 | p[1]) << 8 | p[2]) << 8 | p[3]
Just enter it directly as a u4_t.
eg
{ 0x01, 0x58, 0xA5, 0xA2 }
would end up asFFFFA5A2