aboutsummaryrefslogtreecommitdiff
path: root/mcu
diff options
context:
space:
mode:
Diffstat (limited to 'mcu')
-rw-r--r--mcu/usb-stm32f103.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mcu/usb-stm32f103.c b/mcu/usb-stm32f103.c
index 73c32c3..02be1cf 100644
--- a/mcu/usb-stm32f103.c
+++ b/mcu/usb-stm32f103.c
@@ -885,8 +885,10 @@ usb_handle_transfer (uint16_t istr_value)
if ((ep_value & EP_CTR_TX))
{
+ uint32_t len = st103_get_tx_count (ep_index);
+
st103_ep_clear_ctr_tx (ep_index);
- usb_cb_tx_done (ep_index);
+ usb_cb_tx_done (ep_index, len, 1);
}
}
}