Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return error when can't get USB info #366

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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