fix improper detecting of usb haptic device
This commit is contained in:
parent
7a5ca94209
commit
e7751b4e16
|
|
@ -105,11 +105,5 @@ int usbhapticdev_init(USBGenericHapticDevice* usbhapticdevice, DeviceSettings* d
|
||||||
slogw("Possibly unknown device");
|
slogw("Possibly unknown device");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(usbhapticdevice->handle == 0)
|
|
||||||
{
|
|
||||||
error = MONOCOQUE_ERROR_INVALID_DEV;
|
|
||||||
return error;
|
|
||||||
}
|
|
||||||
|
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue