Commit e3aed1f5 authored by Projects's avatar Projects

Implemented oattnusb_open()

parent 8d642f83
......@@ -43,8 +43,15 @@ static struct {
int oattnusb_open(int lun)
{
/* not implemented: ignore lun by the moment */
return -ENOSYS;
struct oattnusb_devarray *list;
list = oattnusb_get_devarray(OATTNUSB_VENDOR_ID, OATTNUSB_DEVICE_ID);
if (lun < 0 || lun >= list->ndevs) {
return -1;
}
return oattnusb_open_by_serial(list->devs[lun].serial);
}
int oattnusb_open_by_serial(const char *serial)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment