Open kengruven opened 1 year ago
The hid-open procedure has a mandatory #:serial-number parameter, of type string?. In the C library, the sample code begins with:
hid-open
#:serial-number
string?
handle = hid_open(0x4d8, 0x3f, NULL);
showing that the serial number is optional. In Racket, it's a non-optional keyword, and passing #f throws a contract violation.
#f
Thanks for your report. I will fix it over the weekend.
The
hid-open
procedure has a mandatory#:serial-number
parameter, of typestring?
. In the C library, the sample code begins with:showing that the serial number is optional. In Racket, it's a non-optional keyword, and passing
#f
throws a contract violation.