apmorton / pyhidapi

hidapi bindings in ctypes
MIT License
111 stars 42 forks source link

support 64bit #23

Closed HAL9HARUKU closed 5 years ago

HAL9HARUKU commented 5 years ago

Avoid crash when using 64bit python

apmorton commented 5 years ago

Chances are good the return type you added is also correct for 32bit - do you mind trying without the 64bit condition on a 32bit python?

HAL9HARUKU commented 5 years ago

Thanks! Worked without the 64bit condition on a 32bit python.

apmorton commented 5 years ago

can you please test the code on master? I committed the changes suggested in #16, which should be equivalent to your PR, except for all hidapi exports

HAL9HARUKU commented 5 years ago

I tested the code on master, it worked well. Thanks!