rejected hunk:
--- softusb-input/main.c
+++ softusb-input/main.c
@@ -696,9 +708,11 @@
for(i=0;i<128;i++)
asm("nop");
+#ifndef TRIGGER
wio8(SIE_SEL_RX, 0);
wio8(SIE_SEL_TX, 0x01);
port_service(&port_a, 'A');
+#endif
wio8(SIE_SEL_RX, 1);
wio8(SIE_SEL_TX, 0x02);
my file:
/*
* wait extra time to allow the USB cable
* capacitance to discharge (otherwise some disconnects
* aren't properly detected)
*/
for(i=0;i<128;i++)
asm("nop");
wio8(SIE_SEL_RX, 0);
wio8(SIE_SEL_TX, 0x01);
port_service(&port_a, 'A');
wio8(SIE_SEL_RX, 1);
wio8(SIE_SEL_TX, 0x02);
port_service(&port_b, 'B');
/* set RX speed for new detected devices */
set_rx_speed();