We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19e89fd commit a40898dCopy full SHA for a40898d
1 file changed
STM32F1/cores/maple/libmaple/usb/stm32f1/usb_cdcacm.c
@@ -449,7 +449,7 @@ uint32 usb_cdcacm_rx(uint8* buf, uint32 len) {
449
450
/* If all bytes have been read, re-enable the RX endpoint, which
451
* was set to NAK when the current batch of bytes was received. */
452
- if (n_unread_bytes ==0) {
+ if (n_unread_bytes == 0) {
453
usb_set_ep_rx_count(USB_CDCACM_RX_ENDP, USB_CDCACM_RX_EPSIZE);
454
usb_set_ep_rx_stat(USB_CDCACM_RX_ENDP, USB_EP_STAT_RX_VALID);
455
}
@@ -565,7 +565,7 @@ static void vcomDataRxCb(void) {
565
566
n_unread_bytes += ep_rx_size;
567
568
- if ( n_unread_bytes==0 ) {
+ if ( n_unread_bytes == 0 ) {
569
570
571
0 commit comments