File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
STM32F1/cores/maple/libmaple/usb/stm32f1 Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments