summaryrefslogtreecommitdiff
path: root/src/class/cdc/cdc_host.c
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2023-04-28 11:25:53 +0700
committerGitHub <[email protected]>2023-04-28 11:25:53 +0700
commita41ab41b8b49e35fd0182472bd61909015f706cf (patch)
tree37c2883538b1919939d1b5ea59d095dc63874af1 /src/class/cdc/cdc_host.c
parente3b3229d61676585879c81d5f2e3393a2a1f1b16 (diff)
parent190acc1fb0579d3e097ba2b0b96033740ecee26e (diff)
Merge pull request #2047 from jbtheou/master
cdc: fix line_coding aligment
Diffstat (limited to 'src/class/cdc/cdc_host.c')
-rw-r--r--src/class/cdc/cdc_host.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/class/cdc/cdc_host.c b/src/class/cdc/cdc_host.c
index 4c87ff1ad..e2447d033 100644
--- a/src/class/cdc/cdc_host.c
+++ b/src/class/cdc/cdc_host.c
@@ -58,8 +58,8 @@ typedef struct {
cdc_acm_capability_t acm_capability;
uint8_t ep_notif;
- cdc_line_coding_t line_coding; // Baudrate, stop bits, parity, data width
- uint8_t line_state; // DTR (bit0), RTS (bit1)
+ uint8_t line_state; // DTR (bit0), RTS (bit1)
+ TU_ATTR_ALIGNED(4) cdc_line_coding_t line_coding; // Baudrate, stop bits, parity, data width
tuh_xfer_cb_t user_control_cb;