jpathy / hidapi

FFI bindings for hidapi
MIT License
1 stars 3 forks source link

Allow #:serial-number #f in hid-open #5

Open kengruven opened 1 year ago

kengruven commented 1 year ago

Partial fix for #2: add (or/c ... #f) to contract for hid-open.

I'm not familiar enough with define-ffi-definer to make the keyword parameter optional, but that would also be nice to have.

kengruven commented 1 year ago

Oops, I pushed the URL update (for #4) onto this branch as well.