mirror of
https://github.com/gdsports/USBHost_t36
synced 2024-11-25 02:22:17 -05:00
Fix device list of drivers in use
This commit is contained in:
parent
a1cde4e568
commit
2b0fda8a11
@ -344,11 +344,8 @@ void USBHost::claim_drivers(Device_t *dev)
|
|||||||
available_drivers = driver->next;
|
available_drivers = driver->next;
|
||||||
}
|
}
|
||||||
// add to list of drivers using this device
|
// add to list of drivers using this device
|
||||||
if (dev->drivers) {
|
driver->next = dev->drivers;
|
||||||
dev->drivers->next = driver;
|
|
||||||
}
|
|
||||||
dev->drivers = driver;
|
dev->drivers = driver;
|
||||||
driver->next = NULL;
|
|
||||||
driver->device = dev;
|
driver->device = dev;
|
||||||
// not done, may be more interface for more drivers
|
// not done, may be more interface for more drivers
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user