Skip to content

Commit

Permalink
Flip ordering for marginally better packing behaviour on some platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreRenaud committed Jun 5, 2023
1 parent 3df2291 commit 7c00bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmodem_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ struct xmodem_server {
uint8_t packet_data[XMODEM_MAX_PACKET_SIZE]; // Incoming packet data
int packet_pos; // Where are we up to in this packet
uint16_t crc; // What is the expected CRC of the incoming packet
bool crc_8_bit; // If using 128B packets, force the original 8-bit checksum, not 16-bit CRC
uint16_t packet_size; // Are we receiving 128B or 1K packets?
bool crc_8_bit; // If using 128B packets, force the original 8-bit checksum, not 16-bit CRC
bool repeating; // Are we receiving a packet that we've already processed?
int64_t last_event_time; // When did we last do something interesting?
uint32_t block_num; // What block are we up to?
Expand Down

0 comments on commit 7c00bd2

Please sign in to comment.