8000 minor comment · arduino/tinyusb@f4845e4 · GitHub
[go: up one dir, main page]

Skip to content

Commit f4845e4

Browse files
committed
minor comment
1 parent 0109ffb commit f4845e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/portable/ehci/ehci.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,9 @@ void qhd_xfer_complete_isr(ehci_qhd_t * qhd) {
578578
if ( qtd_overlay->halted ) {
579579
if (qtd_overlay->xact_err || qtd_overlay->err_count == 0 || qtd_overlay->buffer_err || qtd_overlay->babble_err) {
580580
// Error count = 0 often occurs when device disconnected, or other bus-related error
581+
// clear halted bit if not caused by STALL to allow more transfer
581582
xfer_result = XFER_RESULT_FAILED;
582-
qtd_overlay->halted = false; // clear halted bit if it is not caused by STALL
583+
qtd_overlay->halted = false;
583584
TU_LOG3(" QHD xfer err count: %d\n", qtd_overlay->err_count);
584585
// TU_BREAKPOINT(); // TODO skip unplugged device
585586
}else {

0 commit comments

Comments
 (0)
0