Skip to content

Commit

Permalink
[rtl872x] usb: make sure CDC line coding struct is packed
Browse files Browse the repository at this point in the history
  • Loading branch information
avtolstoy authored and scott-brust committed Sep 28, 2022
1 parent 17cbdef commit c864ef9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hal/src/rtl872x/usbd_cdc.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ namespace particle { namespace usbd {

namespace cdc {

#pragma pack(push, 1)
struct LineCoding {
uint32_t dwDTERate;
uint8_t bCharFormat;
uint8_t bParityType;
uint8_t bDataBits;
};
#pragma pack(pop)

enum Request {
SET_LINE_CODING = 0x20,
Expand Down

0 comments on commit c864ef9

Please sign in to comment.