interception_py icon indicating copy to clipboard operation
interception_py copied to clipboard

Fix `c_recv_buffer` using `c_byte`

Open kennyhml opened this issue 2 years ago • 0 comments

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.

kennyhml avatar Apr 16 '23 12:04 kennyhml