Skip to content

Commit

Permalink
Remove attribute packed
Browse files Browse the repository at this point in the history
  • Loading branch information
OgreTransporter committed Dec 17, 2024
1 parent 97f17c3 commit 967839a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/devices/deltadore_x3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,7 @@ struct deltadore_x3d_message_header {
int16_t header_check;
};

#ifdef _MSC_VER
#pragma pack(push, 1)
struct deltadore_x3d_message_payload {
#else
struct __attribute__((packed)) deltadore_x3d_message_payload {
#endif
uint8_t retry;
uint16_t transfer;
uint16_t transfer_ack;
Expand All @@ -189,9 +184,6 @@ struct __attribute__((packed)) deltadore_x3d_message_payload {
uint8_t register_low;
uint16_t target_ack;
};
#ifdef _MSC_VER
#pragma pack(pop)
#endif

/* clang-format off */
static uint32_t deltadore_x3d_read_le_u24(uint8_t **buffer)
Expand Down

0 comments on commit 967839a

Please sign in to comment.