From 3ee6d8993bb9c5c6073c5db7e1ee96c066d34e93 Mon Sep 17 00:00:00 2001 From: Rajkumar Kanagaraj Date: Wed, 13 May 2020 14:11:36 +0100 Subject: [PATCH] Incorporated the review comment --- TESTS/usb_device/serial/main.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/TESTS/usb_device/serial/main.cpp b/TESTS/usb_device/serial/main.cpp index 5dbb6faef0..ba1af861da 100644 --- a/TESTS/usb_device/serial/main.cpp +++ b/TESTS/usb_device/serial/main.cpp @@ -781,11 +781,12 @@ void line_coding_changed_cb(int baud, int bits, int parity, int stop) lc->stop = stop; lc_mail.put(lc); #else - line_coding_t lc = {0}; - lc.baud = baud; - lc.bits = bits; - lc.parity = parity; - lc.stop = stop; + line_coding_t lc = { + .baud = baud, + .bits = bits, + .parity = parity, + .stop = stop + }; lc_data.push(lc); event_flags.set(EF_SEND); #endif