Revision 079d0b7f hw/usb-hid.c

b/hw/usb-hid.c
463 463

  
464 464
    switch (p->pid) {
465 465
    case USB_TOKEN_IN:
466
        if (p->devep == 1) {
466
        if (p->ep->nr == 1) {
467 467
            int64_t curtime = qemu_get_clock_ns(vm_clock);
468 468
            if (!hid_has_events(hs) &&
469 469
                (!hs->idle || hs->next_idle_clock - curtime > 0)) {

Also available in: Unified diff