Skip to content

Commit c367983

Browse files
committed
USB transfer fix (tested on WIN)
modified: src/targets/STM32F10x/STM32F10x_dev_init.c
1 parent f3626b4 commit c367983

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/targets/STM32F10x/STM32F10x_dev_init.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,8 +675,7 @@ static void USB_Send_Data_Handler(uint8_t ep)
675675

676676
uint8_t USB_send_data_to_host(uint8_t ep, uint8_t * data, uint16_t length)
677677
{
678-
// error endpoint is busy
679-
if (data_for_host_status[ep] != EP_TO_HOST_FREE) {
678+
if (data_for_host_status[ep] == EP_TO_HOST_BUSY) {
680679
DEBUG_print_string("ERR");
681680
DEBUG_print_hex(ep);
682681
DEBUG_print_string("\n");

0 commit comments

Comments
 (0)