if (sts.wPortStatus & USB_PORT_STAT_CONNECTION)
// Device connected.
break;
- if (check_time(end))
+ if (check_tsc(end))
// No device found.
return -1;
msleep(5);
goto fail;
if (!(sts.wPortStatus & USB_PORT_STAT_RESET))
break;
- if (check_time(end)) {
+ if (check_tsc(end)) {
warn_timeout();
goto fail;
}