Skip to content

Commit

Permalink
USB transfer fix (tested on WIN)
Browse files Browse the repository at this point in the history
	modified:   src/targets/STM32F10x/STM32F10x_dev_init.c
  • Loading branch information
popovec committed Mar 15, 2024
1 parent 61c91bb commit 2153b35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/targets/STM32F10x/STM32F10x_dev_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,8 +675,7 @@ static void USB_Send_Data_Handler(uint8_t ep)

uint8_t USB_send_data_to_host(uint8_t ep, uint8_t * data, uint16_t length)
{
// error endpoint is busy
if (data_for_host_status[ep] != EP_TO_HOST_FREE) {
if (data_for_host_status[ep] == EP_TO_HOST_BUSY) {
DEBUG_print_string("ERR");
DEBUG_print_hex(ep);
DEBUG_print_string("\n");
Expand Down

0 comments on commit 2153b35

Please sign in to comment.