Skip to content

Conversation

skapix
Copy link

@skapix skapix commented Nov 24, 2017

When USB is sudenly plugged off, get_device_string call still returns 0, that means success. This commit fixes it and get_device_string returns -1. It is useful for checking, whether usb is still connected with some of hid_get_* functions.
uname -r: 4.13.11-1-ARCH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant