fix diagnostics

This commit is contained in:
Markus Fröschle
2021-07-17 23:01:45 +02:00
parent 56c3604f7c
commit c8cc6c4625

View File

@@ -97,10 +97,14 @@ int drv_usb_mouse_init(void)
break; break;
} }
xprintf("Try to register usb device %d,%d as mouse\r\n", i, j);
if (usb_mouse_register(dev) > 0) if (usb_mouse_register(dev) > 0)
{
xprintf("usb device %d, %d registered as mouse\r\n", j, i);
return 1; return 1;
} }
}
} }
/* no USB Mouse found */ /* no USB Mouse found */
return -1; return -1;