LabJackPython icon indicating copy to clipboard operation
LabJackPython copied to clipboard

ctypes.c_byte to ctypes.c_ubyte fix

Open sjarman28 opened this issue 4 months ago • 0 comments

ctypes.c_byte is specified to be equivalent to a signed char (-128 to 127) but we were passing unsigned char values (0-255) so we should be using ctypes.c_ubyte: https://docs.python.org/3/library/ctypes.html#ctypes.c_byte

This issue causes some of our functions to throw exceptions when using IronPython.

sjarman28 avatar Feb 29 '24 22:02 sjarman28