We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d3a651 commit fe5b41eCopy full SHA for fe5b41e
softusb-input/main.c
@@ -81,11 +81,11 @@ static void usb_tx(unsigned char *buf, unsigned char len)
81
unsigned char i;
82
83
wio8(SIE_TX_DATA, 0x80); /* send SYNC */
84
- while(rio8(SIE_TX_PENDING));
85
for(i=0;i<len;i++) {
86
- wio8(SIE_TX_DATA, buf[i]);
87
while(rio8(SIE_TX_PENDING));
+ wio8(SIE_TX_DATA, buf[i]);
88
}
+ while(rio8(SIE_TX_PENDING));
89
wio8(SIE_TX_VALID, 0);
90
while(rio8(SIE_TX_BUSY));
91
@@ -477,6 +477,7 @@ static void port_service(struct port_status *p, char name)
477
else
478
wio8(SIE_TX_BUSRESET, rio8(SIE_TX_BUSRESET) & 0x01);
479
p->state = PORT_STATE_SET_ADDRESS;
480
+ p->retry_count = 0;
481
482
break;
483
case PORT_STATE_SET_ADDRESS: {
0 commit comments