Revert "freebsd: Assume all devices on FreeBSD are USB 2.0 per default because"
This reverts commit fd75ad6d3d71429f9e82339bd5abdb391725923b.
This commit is contained in:
parent
c21d42e4ce
commit
727357e1bd
1 changed files with 0 additions and 5 deletions
|
@ -953,13 +953,8 @@ get_device_connection(const char *dev)
|
|||
snprintf(path, sizeof(path), "/sys/class/%s/device/speed", dev);
|
||||
|
||||
if(readlinefromfile(path, l, sizeof(l))) {
|
||||
#if defined(PLATFORM_FREEBSD)
|
||||
// Assume USB 2.0 on FreeBSD because there are no supported PCI devices
|
||||
return HOSTCONNECTION_USB480;
|
||||
#else
|
||||
// Unable to read speed, assume it's PCI
|
||||
return HOSTCONNECTION_PCI;
|
||||
#endif
|
||||
} else {
|
||||
speed = atoi(l);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue