simplify upload request

This commit is contained in:
hathach
2021-07-14 16:42:12 +07:00
parent 5b965a3888
commit 95ded08e3b
3 changed files with 43 additions and 55 deletions

View File

@@ -449,7 +449,7 @@ typedef struct TU_ATTR_PACKED
/*------------------------------------------------------------------*/
/* Types
*------------------------------------------------------------------*/
typedef struct TU_ATTR_PACKED{
typedef struct TU_ATTR_PACKED TU_ATTR_ALIGNED(4) {
union {
struct TU_ATTR_PACKED {
uint8_t recipient : 5; ///< Recipient type tusb_request_recipient_t.