iidxio-ezusb: Bugfix random input/outputs on startup
This commit is contained in:
@@ -75,9 +75,17 @@ bool iidx_io_init(
|
|||||||
} else {
|
} else {
|
||||||
log_info(
|
log_info(
|
||||||
"Connected ezusb: vid 0x%X, pid 0x%X", ident.vid, ident.pid);
|
"Connected ezusb: vid 0x%X, pid 0x%X", ident.vid, ident.pid);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Random data returned by device, likely not properly initalized on device side
|
||||||
|
// Triggers random inputs and lights
|
||||||
|
// Flush that by execute a few polls
|
||||||
|
for (int i = 0; i < 10; i++) {
|
||||||
|
iidx_io_ep2_recv();
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void iidx_io_fini(void)
|
void iidx_io_fini(void)
|
||||||
|
|||||||
Reference in New Issue
Block a user