Skip to content

Commit e2aed18

Browse files
authored
Update USBCDC.cpp to fulfill A style
1 parent 1cccc7e commit e2aed18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/usb/source/USBCDC.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ void USBCDC::send_nb(uint8_t *buffer, uint32_t size, uint32_t *actual, bool now)
388388
}
389389
_tx_size += write_size;
390390
*actual = write_size;
391-
if((CDC_MAX_PACKET_SIZE == size) && (CDC_MAX_PACKET_SIZE == write_size)) {
391+
if ((CDC_MAX_PACKET_SIZE == size) && (CDC_MAX_PACKET_SIZE == write_size)) {
392392
_trans_zlp = true;
393393
}
394394
if (now) {
@@ -407,7 +407,7 @@ void USBCDC::_send_isr_start()
407407
if (USBDevice::write_start(_bulk_in, _tx_buffer, _tx_size)) {
408408
_tx_in_progress = true;
409409
}
410-
} else if(!_tx_in_progress && _trans_zlp) {
410+
} else if (!_tx_in_progress && _trans_zlp) {
411411
if (USBDevice::write_start(_bulk_in, _tx_buffer, 0)) {
412412
_tx_in_progress = true;
413413
_trans_zlp = false;

0 commit comments

Comments
 (0)