Skip to content

Commit

Permalink
Clean up uip_userdata_t struct
Browse files Browse the repository at this point in the history
- Arrange struct to pack data more efficiently, saves memory and program space.
  • Loading branch information
TMRh20 committed Nov 27, 2021
1 parent d96617a commit a9936c8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions RF24Client.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,22 @@ typedef struct {
* @warning <b> This is used internally and should not be accessed directly by users </b>
*/
typedef struct {
uint8_t state;
bool hold;
bool sent;
bool packets_in;
bool packets_out;
bool windowOpened;
uint8_t state;
uint16_t out_pos;
uint16_t dataPos;
uint16_t dataCnt;
#if UIP_CLIENT_TIMER >= 0
unsigned long timer;
uint32_t timer;
#endif
bool windowOpened;
uint32_t restartTime;
uint32_t restartInterval;
uint32_t connAbortTime;
uint8_t myData[OUTPUT_BUFFER_SIZE];
uint16_t dataPos;
uint16_t dataCnt;
bool hold;
bool sent;
} uip_userdata_t;


Expand Down

0 comments on commit a9936c8

Please sign in to comment.