J
johnty
i'm reading bytes from a serial port, and storing it into an array.
each byte represents a signed 8-bit int.
currently, the code i'm looking at converts them to an unsigned int by
doing ord(array). however, what i'd like is to get the _signed_
integer value. whats the easiest way to do this?
thanks in advance.
johnty
each byte represents a signed 8-bit int.
currently, the code i'm looking at converts them to an unsigned int by
doing ord(array). however, what i'd like is to get the _signed_
integer value. whats the easiest way to do this?
thanks in advance.
johnty