From e2aed1824c2c3deb9300a8cd6e60e8d8dbdabb44 Mon Sep 17 00:00:00 2001 From: Chris Liang Date: Fri, 1 Dec 2023 20:43:12 +0800 Subject: [PATCH] Update USBCDC.cpp to fulfill A style --- drivers/usb/source/USBCDC.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/source/USBCDC.cpp b/drivers/usb/source/USBCDC.cpp index fb93b16c3a..b32730388b 100644 --- a/drivers/usb/source/USBCDC.cpp +++ b/drivers/usb/source/USBCDC.cpp @@ -388,7 +388,7 @@ void USBCDC::send_nb(uint8_t *buffer, uint32_t size, uint32_t *actual, bool now) } _tx_size += write_size; *actual = write_size; - if((CDC_MAX_PACKET_SIZE == size) && (CDC_MAX_PACKET_SIZE == write_size)) { + if ((CDC_MAX_PACKET_SIZE == size) && (CDC_MAX_PACKET_SIZE == write_size)) { _trans_zlp = true; } if (now) { @@ -407,7 +407,7 @@ void USBCDC::_send_isr_start() if (USBDevice::write_start(_bulk_in, _tx_buffer, _tx_size)) { _tx_in_progress = true; } - } else if(!_tx_in_progress && _trans_zlp) { + } else if (!_tx_in_progress && _trans_zlp) { if (USBDevice::write_start(_bulk_in, _tx_buffer, 0)) { _tx_in_progress = true; _trans_zlp = false;