浏览代码

Fix device list of drivers in use

main
PaulStoffregen 7 年前
父节点
当前提交
2b0fda8a11
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. +1
    -4
      enumeration.cpp

+ 1
- 4
enumeration.cpp 查看文件

@@ -344,11 +344,8 @@ void USBHost::claim_drivers(Device_t *dev)
available_drivers = driver->next;
}
// add to list of drivers using this device
if (dev->drivers) {
dev->drivers->next = driver;
}
driver->next = dev->drivers;
dev->drivers = driver;
driver->next = NULL;
driver->device = dev;
// not done, may be more interface for more drivers
}

正在加载...
取消
保存