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