Skip to content

Commit 3ee6d89

Browse files
committed
Incorporated the review comment
1 parent 2feb112 commit 3ee6d89

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

TESTS/usb_device/serial/main.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -781,11 +781,12 @@ void line_coding_changed_cb(int baud, int bits, int parity, int stop)
781781
lc->stop = stop;
782782
lc_mail.put(lc);
783783
#else
784-
line_coding_t lc = {0};
785-
lc.baud = baud;
786-
lc.bits = bits;
787-
lc.parity = parity;
788-
lc.stop = stop;
784+
line_coding_t lc = {
785+
.baud = baud,
786+
.bits = bits,
787+
.parity = parity,
788+
.stop = stop
789+
};
789790
lc_data.push(lc);
790791
event_flags.set(EF_SEND);
791792
#endif

0 commit comments

Comments
 (0)