Skip to content

Return error when can't get USB info - #366

Open
skapix wants to merge 1 commit into
signal11:masterfrom
skapix:master
Open

Return error when can't get USB info#366
skapix wants to merge 1 commit into
signal11:masterfrom
skapix:master

Conversation

@skapix

@skapix skapix commented Nov 24, 2017

Copy link
Copy Markdown

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