Skip to content

Commit d715e12

Browse files
committed
Fix stm32duino#478 for real this time.
1 parent dd3d946 commit d715e12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cores/arduino/stm32/usb/cdc/usbd_cdc_if.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ bool CDC_connected()
266266
// Save the transmitStart value in a local variable - fix #478
267267
uint32_t transmitTime = transmitStart;
268268
if (transmitTime) {
269-
transmitTime = HAL_GetTick() - transmitStart;
269+
transmitTime = HAL_GetTick() - transmitTime;
270270
}
271271
return hUSBD_Device_CDC.dev_state == USBD_STATE_CONFIGURED
272272
&& transmitTime < USB_CDC_TRANSMIT_TIMEOUT

0 commit comments

Comments
 (0)