We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3626b4 commit c367983Copy full SHA for c367983
src/targets/STM32F10x/STM32F10x_dev_init.c
@@ -675,8 +675,7 @@ static void USB_Send_Data_Handler(uint8_t ep)
675
676
uint8_t USB_send_data_to_host(uint8_t ep, uint8_t * data, uint16_t length)
677
{
678
- // error endpoint is busy
679
- if (data_for_host_status[ep] != EP_TO_HOST_FREE) {
+ if (data_for_host_status[ep] == EP_TO_HOST_BUSY) {
680
DEBUG_print_string("ERR");
681
DEBUG_print_hex(ep);
682
DEBUG_print_string("\n");
0 commit comments