labjack / LabJackPython

The official Python modules and classes for interacting with the LabJack U3, U6, UE9 and U12
https://labjack.com/support/software/examples/ud/labjackpython
MIT License
117 stars 79 forks source link

ctypes.c_byte to ctypes.c_ubyte fix #130

Open sjarman28 opened 8 months ago

sjarman28 commented 8 months ago

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.