darrylb123/usbrelay — pull request #4 by wentasah (2014-09-30 15:28:37+00:00)
Title: Fix uninitialized report ID

When calling hid_get_feature_report(), it is necessary to initialize the
first byte of the buffer to the report ID. The program only works if the
report ID is non-zero. On some systems the non-zero value was there "by
accident", whereas other systems had there zero and the program didn't
work. Setting the report ID to 1 fixes the program for all (two)
systems I currently use.

Also add some error checking.