You can use the ctypes
module to do the conversion for you:
sint32 = ctypes.c_int(uint24 + (byte << 24)).value
This will give you a 32-bit signed integer.
solved Converting uint24 and unsigned char to 32bit signed int with python struct
You can use the ctypes
module to do the conversion for you:
sint32 = ctypes.c_int(uint24 + (byte << 24)).value
This will give you a 32-bit signed integer.
solved Converting uint24 and unsigned char to 32bit signed int with python struct