convert between CRC and the bytes comprising it manually to avoid endianness issues

This commit is contained in:
marschap
2006-09-09 20:12:38 +00:00
parent e234c49db9
commit ee1e5c967f
2 changed files with 16 additions and 16 deletions
+1 -4
View File
@@ -95,10 +95,7 @@ typedef struct {
ubyte command;
ubyte data_length;
ubyte data[MAX_DATA_LENGTH+1];
union {
unsigned char as_bytes[2];
word as_word;
} crc;
word crc;
} COMMAND_PACKET;