We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 127be3c commit 3283a93Copy full SHA for 3283a93
cores/stm32l4/CDC.cpp
@@ -403,6 +403,10 @@ void CDC::EventCallback(uint32_t events)
403
if (empty && _receiveCallback) {
404
(*_receiveCallback)(count);
405
}
406
+
407
+ if (!rx_size) {
408
+ break;
409
+ }
410
411
412
cores/stm32l4/Uart.cpp
@@ -393,6 +393,10 @@ void Uart::EventCallback(uint32_t events)
393
394
395
396
397
398
399
400
401
402
0 commit comments