Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Errors when building device capabilities #16

Open
maitredede opened this issue Aug 30, 2019 · 1 comment
Open

Errors when building device capabilities #16

maitredede opened this issue Aug 30, 2019 · 1 comment

Comments

@maitredede
Copy link

Hi,

When trying to build device capabilities map, errors are raised for some arguments. With the commits that handle errors, when trying to open a device, errors are always raised, so my device list becomes empty...

Can be related to #14 and #15 .

@maitredede
Copy link
Author

I have added some logging : https://github.com/MaitreDede/golang-evdev/tree/err-checks

Here is what I get with a keyboard :

2019/08/30 13:52:07 setDeviceCapabilities().ioctl(EVIOCGBIT(evtype, KEY_MAX)) evtype=20 error: invalid argument
2019/08/30 13:52:07 setDeviceCapabilities().ioctl(EVIOCGBIT(evtype, KEY_MAX)) evtype=20 error: invalid argument

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant