Skip to content

Commit a40898d

Browse files
committed
try to sync
1 parent 19e89fd commit a40898d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

STM32F1/cores/maple/libmaple/usb/stm32f1/usb_cdcacm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ uint32 usb_cdcacm_rx(uint8* buf, uint32 len) {
449449

450450
/* If all bytes have been read, re-enable the RX endpoint, which
451451
* was set to NAK when the current batch of bytes was received. */
452-
if (n_unread_bytes ==0) {
452+
if (n_unread_bytes == 0) {
453453
usb_set_ep_rx_count(USB_CDCACM_RX_ENDP, USB_CDCACM_RX_EPSIZE);
454454
usb_set_ep_rx_stat(USB_CDCACM_RX_ENDP, USB_EP_STAT_RX_VALID);
455455
}
@@ -565,7 +565,7 @@ static void vcomDataRxCb(void) {
565565

566566
n_unread_bytes += ep_rx_size;
567567

568-
if ( n_unread_bytes==0 ) {
568+
if ( n_unread_bytes == 0 ) {
569569
usb_set_ep_rx_count(USB_CDCACM_RX_ENDP, USB_CDCACM_RX_EPSIZE);
570570
usb_set_ep_rx_stat(USB_CDCACM_RX_ENDP, USB_EP_STAT_RX_VALID);
571571
}

0 commit comments

Comments
 (0)