fix bitfield order

This commit is contained in:
hathach committed 2017-10-17 15:41:16 +07:00
1 parent 959cbeff4e
commit 2c1bf7f2e7
1 file changed
+3 -3
+3 -3
View File
@@ -124,10 +124,10 @@ typedef struct ATTR_PACKED
typedef struct ATTR_PACKED
{
uint8_t fragment : 1; // 0 : first Fragment (or no fragment), 1 : Continuation of Fragment
uint8_t : 3; // reserved
uint8_t type : 3; // 0b000 : request, 0b001 : response
uint8_t lenext : 1; // not used
uint8_t type : 3; // 0b000 : request, 0b001 : response
uint8_t : 3; // reserved
uint8_t fragment : 1; // 0 : first Fragment (or no fragment), 1 : Continuation of Fragment
} HAPControl_t;
VERIFY_STATIC(sizeof (HAPControl_t) == 1);