1
0
mirror of https://github.com/djhackersdev/bemanitools.git synced 2024-11-14 18:27:36 +01:00

iidxio-ezusb: Fix same flushing issue on shutdown as bio2

This commit is contained in:
icex2 2021-01-06 19:37:53 +01:00
parent a1a67697c4
commit f3b07aeb0a

View File

@ -90,6 +90,15 @@ bool iidx_io_init(
void iidx_io_fini(void)
{
// Pushing some final state before closing the IO to the actual outputs, e.g. lights on/off
// can be a bit finicky. Do a few polls to "enforce"/flush this final state
for (uint8_t i = 0; i < 5; i++) {
iidx_io_ep1_send();
iidx_io_ep2_recv();
Sleep(10);
}
ezusb_close(iidx_io_ezusb_handle);
iidx_io_ezusb_handle = INVALID_HANDLE_VALUE;
}