Explorar el Código

Fix device list of drivers in use

main
PaulStoffregen hace 7 años
padre
commit
2b0fda8a11
Se han modificado 1 ficheros con 1 adiciones y 4 borrados
  1. +1
    -4
      enumeration.cpp

+ 1
- 4
enumeration.cpp Ver fichero

@@ -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
}

Cargando…
Cancelar
Guardar