Internal packet structs don't need to be packed, only the wired structs

This commit is contained in:
Philippe Teuwen 2019-05-13 22:32:44 +02:00
commit d05cd5ff2b

View file

@ -65,7 +65,7 @@ typedef struct {
uint32_t asDwords[PM3_CMD_DATA_SIZE / 4]; uint32_t asDwords[PM3_CMD_DATA_SIZE / 4];
} data; } data;
bool ng; // does it store NG data or OLD data? bool ng; // does it store NG data or OLD data?
} PACKED PacketCommandNG; } PacketCommandNG;
// For reception and CRC check // For reception and CRC check
typedef struct { typedef struct {
@ -111,7 +111,7 @@ typedef struct {
uint32_t asDwords[PM3_CMD_DATA_SIZE / 4]; uint32_t asDwords[PM3_CMD_DATA_SIZE / 4];
} data; } data;
bool ng; // does it store NG data or OLD data? bool ng; // does it store NG data or OLD data?
} PACKED PacketResponseNG; } PacketResponseNG;
// For reception and CRC check // For reception and CRC check
typedef struct { typedef struct {