Sensor Packets Have Wrong Endian Ordering
Status: Beta
Brought to you by:
bluewhackadoo
The ControlStatus and PowerStatus short and ushort fields read in little-endian order on intel chips, while the structures actually come in as big-endian.
I have made a simple fix myself to get the correct data out by using bytes for everything (splitting the fields into hi and lo bytes) and then adding property accessors that correctly combine these into shorts.
Logged In: NO
Oh, sorry, my email is bdodson@rice.edu