Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Fix c_recv_buffer using c_byte #12

Open
kennyhml opened this issue Apr 16, 2023 · 0 comments
Open

Fix c_recv_buffer using c_byte #12

kennyhml opened this issue Apr 16, 2023 · 0 comments

Comments

@kennyhml
Copy link

In the device class, you initialize the receive buffer as 12 or 24 signed bytes c_byte depending on the device type.

Later in the device_io_result class, that data is passed and converted to bytes, which causes an error

bytes must be in range(0, 256).

This happened because signed bytes are used for the recv buffer, please consider to use c_ubyte to fix this issue.

When capturing strokes, if you are using a debugger for example, you will not be able to use your devices until you restart your computer.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant