{"action":"opened","issue":{"url":"https://api.github.com/repos/acyed/qtFx/issues/3","repository_url":"https://api.github.com/repos/acyed/qtFx","labels_url":"https://api.github.com/repos/acyed/qtFx/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/acyed/qtFx/issues/3/comments","events_url":"https://api.github.com/repos/acyed/qtFx/issues/3/events","html_url":"https://github.com/acyed/qtFx/issues/3","id":198273374,"number":3,"title":"Why libusb_control_transfer(...) returned negative value?","user":{"login":"liusida","id":14249458,"avatar_url":"https://avatars.githubusercontent.com/u/14249458?v=3","gravatar_id":"","url":"https://api.github.com/users/liusida","html_url":"https://github.com/liusida","followers_url":"https://api.github.com/users/liusida/followers","following_url":"https://api.github.com/users/liusida/following{/other_user}","gists_url":"https://api.github.com/users/liusida/gists{/gist_id}","starred_url":"https://api.github.com/users/liusida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liusida/subscriptions","organizations_url":"https://api.github.com/users/liusida/orgs","repos_url":"https://api.github.com/users/liusida/repos","events_url":"https://api.github.com/users/liusida/events{/privacy}","received_events_url":"https://api.github.com/users/liusida/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-01T16:44:13Z","updated_at":"2017-01-01T16:44:13Z","closed_at":null,"body":"I am on Alienware 17 R4.\r\nthis is my usb:\r\n`Bus 001 Device 004: ID 187c:0530 Alienware Corporation \r\n`\r\nI change the product id by: \r\n`#define MY_PRODUCT_ID 0x0530\r\n`\r\n\r\nthis is my libusb:\r\n```\r\nlibhidapi-libusb0/xenial 0.8.0~rc1+git20140818.d17db57+dfsg-1 amd64\r\nlibhidapi-libusb0-dbg/xenial 0.8.0~rc1+git20140818.d17db57+dfsg-1 amd64\r\nlibusb++-0.1-4v5/xenial 2:0.1.12-28 amd64\r\nlibusb++-dev/xenial 2:0.1.12-28 amd64\r\nlibusb-0.1-4/xenial,now 2:0.1.12-28 amd64 [installed]\r\nlibusb-1.0-0/xenial,now 2:1.0.20-1 amd64 [installed,automatic]\r\nlibusb-1.0-0-dbg/xenial 2:1.0.20-1 amd64\r\nlibusb-1.0-0-dev/xenial 2:1.0.20-1 amd64\r\nlibusb-1.0-doc/xenial,xenial 2:1.0.20-1 all\r\nlibusb-dev/xenial 2:0.1.12-28 amd64\r\nlibusb-java/xenial,xenial 0.8+ztex20090101-7 all\r\nlibusb-java-dbg/xenial 0.8+ztex20090101-7 amd64\r\nlibusb-java-doc/xenial,xenial 0.8+ztex20090101-7 all\r\nlibusb-java-lib/xenial 0.8+ztex20090101-7 amd64\r\nlibusb-ocaml/xenial 1.3.0-3build1 amd64\r\nlibusb-ocaml-dev/xenial 1.3.0-3build1 amd64\r\nlibusbhid-common/xenial,xenial 10.1~svn273304-1ubuntu1 all\r\nlibusbip-dev/xenial 0.1.7-3 amd64\r\nlibusbip0/xenial 0.1.7-3 amd64\r\nlibusbmuxd-dev/xenial-updates,xenial-security 1.0.10-2ubuntu0.1 amd64\r\nlibusbmuxd-tools/xenial-updates,xenial-security 1.0.10-2ubuntu0.1 amd64\r\nlibusbmuxd4/xenial-updates,xenial-security,now 1.0.10-2ubuntu0.1 amd64 [installed,automatic]\r\nlibusbmuxd4-dbg/xenial-updates,xenial-security 1.0.10-2ubuntu0.1 amd64\r\nlibusbprog-dev/xenial 0.2.0-2.2 amd64\r\nlibusbprog0v5/xenial 0.2.0-2.2 amd64\r\nlibusbredirhost-dev/xenial 0.7.1-1 amd64\r\nlibusbredirhost1/xenial 0.7.1-1 amd64\r\nlibusbredirparser-dev/xenial 0.7.1-1 amd64\r\nlibusbredirparser1/xenial 0.7.1-1 amd64\r\nlibusbtc08-1/xenial 1.7.2-5 amd64\r\nlibusbtc08-dev/xenial 1.7.2-5 amd64\r\n\r\n```\r\nwhen i run this program, the write_bytes goes to -9, as well as read_bytes.\r\n\r\nso i add :\r\nwrite_bytes = abs(write_bytes);\r\nread_bytes = abs(read_bytes);\r\n\r\nthe error suddenly went away!!!\r\n\r\nI can control my keyboard light now!\r\n\r\nThank you!\r\n"}}
{"actor":{"display_login":"liusida"}}