aboutsummaryrefslogtreecommitdiff
path: root/stmhal/usbd_cdc_interface.c
diff options
context:
space:
mode:
authorDamien George2014-11-29 15:23:21 +0000
committerDamien George2014-11-29 15:23:21 +0000
commit19fb1b4dd7173ad2cf4b2bb1b0f0c06498499bd2 (patch)
tree0f557d2d687fad065dd4ad11a3ff3f3b35a83a0f /stmhal/usbd_cdc_interface.c
parentb395220ef00ccf9700a37e470f4d4cf021743572 (diff)
stmhal: Add USB_VCP.setinterrupt method, to disable CTRL-C.
Diffstat (limited to 'stmhal/usbd_cdc_interface.c')
-rw-r--r--stmhal/usbd_cdc_interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/usbd_cdc_interface.c b/stmhal/usbd_cdc_interface.c
index c09c970f6..5814da646 100644
--- a/stmhal/usbd_cdc_interface.c
+++ b/stmhal/usbd_cdc_interface.c
@@ -482,7 +482,7 @@ int USBD_CDC_Rx(uint8_t *buf, uint32_t len, uint32_t timeout) {
for (uint32_t i = 0; i < len; i++) {
// Wait until we have at least 1 byte to read
uint32_t start = HAL_GetTick();
- while (!dev_is_connected || UserRxBufLen == UserRxBufCur) {
+ while (UserRxBufLen == UserRxBufCur) {
// Wraparound of tick is taken care of by 2's complement arithmetic.
if (HAL_GetTick() - start >= timeout) {
// timeout