Message248536
I'm implementing a CAN SAEJ1939 stack in Python and convert CAN message ids in between integers and structures, tunneling them through a Union object with 4 bytes like what i would do in C.
I was checking that particular function and the 3 priority bits were at the wrong position. Some trials later i concluded the bits are reversed and inverted the order in my structure. Now it works fine.
I'm not sure if it's a bug but i would expect ctypes.Structure to
store the fields in the order i provide and not the other way around.
On the other hand the bytes are in the order i provided.
The System I'm running on is 64Bit Ubuntu AMD A1046 but it shows the same behaviour an a 64bit Windows 7 Intel I5 |
|
Date |
User |
Action |
Args |
2015-08-13 19:20:46 | zeero | set | recipients:
+ zeero |
2015-08-13 19:20:46 | zeero | set | messageid: <1439493646.78.0.611197737465.issue24859@psf.upfronthosting.co.za> |
2015-08-13 19:20:46 | zeero | link | issue24859 messages |
2015-08-13 19:20:46 | zeero | create | |
|