fix bug with custom class that terminate xfer after the first QTD

This commit is contained in:
hathach
2013-06-22 22:26:00 +07:00
parent 54c065b1d5
commit fe53297b17
3 changed files with 12 additions and 11 deletions

View File

@@ -73,7 +73,7 @@ tusb_error_t tusbh_custom_read(uint8_t dev_addr, uint16_t vendor_id, uint16_t pr
return TUSB_ERROR_INTERFACE_IS_BUSY;
}
(void) hcd_pipe_xfer( custom_interface[dev_addr-1].pipe_in, p_buffer, length, false);
(void) hcd_pipe_xfer( custom_interface[dev_addr-1].pipe_in, p_buffer, length, true);
return TUSB_ERROR_NONE;
}