mirror of https://github.com/ARMmbed/mbed-os.git
Incorporated the review comment
parent
2feb1124f8
commit
3ee6d8993b
|
|
@ -781,11 +781,12 @@ void line_coding_changed_cb(int baud, int bits, int parity, int stop)
|
||||||
lc->stop = stop;
|
lc->stop = stop;
|
||||||
lc_mail.put(lc);
|
lc_mail.put(lc);
|
||||||
#else
|
#else
|
||||||
line_coding_t lc = {0};
|
line_coding_t lc = {
|
||||||
lc.baud = baud;
|
.baud = baud,
|
||||||
lc.bits = bits;
|
.bits = bits,
|
||||||
lc.parity = parity;
|
.parity = parity,
|
||||||
lc.stop = stop;
|
.stop = stop
|
||||||
|
};
|
||||||
lc_data.push(lc);
|
lc_data.push(lc);
|
||||||
event_flags.set(EF_SEND);
|
event_flags.set(EF_SEND);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue