Skip to content

Commit 772bf04

Browse files
committed
Fix issue where STM32F4 USB could lock up if TX during heavy RX
1 parent 5d76771 commit 772bf04

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
nRF5x: Allow NRF.setScan and NRF.findDevices to take the same search filters NRF.requestDevice does (fix #1496)
7373
Fix buffer overrun if we have to reallocate a pointer to argument lists when calling a function (fix #1491)
7474
Fix stack overflow if executing regex full of hundreds of open brackets (fix #1487)
75+
Fix issue where STM32F4 USB could lock up if TX during heavy RX
7576

7677
1v99 : Increase jslMatch error buffer size to handle "UNFINISHED TEMPLATE LITERAL" string (#1426)
7778
nRF5x: Make FlashWrite cope with flash writes > 4k

targetlibs/stm32usb/usbd_cdc_hid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ static uint8_t USBD_CDC_HID_SOF (struct _USBD_HandleTypeDef *pdev) {
659659
CDC_DATA_FS_OUT_PACKET_SIZE);
660660
}
661661

662-
if (!handle->cdcState & CDC_WRITE_TX_WAIT) {
662+
if (!(handle->cdcState & CDC_WRITE_TX_WAIT)) {
663663
// try and fill the buffer
664664
unsigned int len = 0;
665665
int c;

0 commit comments

Comments
 (0)