|
|
@ -163,12 +163,10 @@ class dbc(object): |
|
|
|
# big or little endian? |
|
|
|
# big or little endian? |
|
|
|
# see http://vi-firmware.openxcplatform.com/en/master/config/bit-numbering.html |
|
|
|
# see http://vi-firmware.openxcplatform.com/en/master/config/bit-numbering.html |
|
|
|
if s[3] is False: |
|
|
|
if s[3] is False: |
|
|
|
endianness = "big" |
|
|
|
|
|
|
|
ss = self.bits.index(s[1]) |
|
|
|
ss = self.bits.index(s[1]) |
|
|
|
x2_int = int(hexlify(x[2]), 16) |
|
|
|
x2_int = int(hexlify(x[2]), 16) |
|
|
|
data_bit_pos = (blen - (ss + s[2])) |
|
|
|
data_bit_pos = (blen - (ss + s[2])) |
|
|
|
else: |
|
|
|
else: |
|
|
|
endianness = "little" |
|
|
|
|
|
|
|
x2_int = int(swap_order(hexlify(x[2]), 16, 2), 16) |
|
|
|
x2_int = int(swap_order(hexlify(x[2]), 16, 2), 16) |
|
|
|
ss = s[1] |
|
|
|
ss = s[1] |
|
|
|
data_bit_pos = ss |
|
|
|
data_bit_pos = ss |
|
|
|