[Solved] Converting uint24 and unsigned char to 32bit signed int with python struct

[ad_1]

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.

[ad_2]

solved Converting uint24 and unsigned char to 32bit signed int with python struct