mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-20 04:21:29 +00:00
minor comment
This commit is contained in:
parent
0109ffbdcb
commit
f4845e4e6c
@ -578,8 +578,9 @@ void qhd_xfer_complete_isr(ehci_qhd_t * qhd) {
|
|||||||
if ( qtd_overlay->halted ) {
|
if ( qtd_overlay->halted ) {
|
||||||
if (qtd_overlay->xact_err || qtd_overlay->err_count == 0 || qtd_overlay->buffer_err || qtd_overlay->babble_err) {
|
if (qtd_overlay->xact_err || qtd_overlay->err_count == 0 || qtd_overlay->buffer_err || qtd_overlay->babble_err) {
|
||||||
// Error count = 0 often occurs when device disconnected, or other bus-related error
|
// Error count = 0 often occurs when device disconnected, or other bus-related error
|
||||||
|
// clear halted bit if not caused by STALL to allow more transfer
|
||||||
xfer_result = XFER_RESULT_FAILED;
|
xfer_result = XFER_RESULT_FAILED;
|
||||||
qtd_overlay->halted = false; // clear halted bit if it is not caused by STALL
|
qtd_overlay->halted = false;
|
||||||
TU_LOG3(" QHD xfer err count: %d\n", qtd_overlay->err_count);
|
TU_LOG3(" QHD xfer err count: %d\n", qtd_overlay->err_count);
|
||||||
// TU_BREAKPOINT(); // TODO skip unplugged device
|
// TU_BREAKPOINT(); // TODO skip unplugged device
|
||||||
}else {
|
}else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user