Index: TD_WaterSample/loader.py =================================================================== diff -u -ra7779af44ced3be6e30e4d4d67125d171a641d09 -rfc43fc2ed484aec6f49ef1c7f67a71c4d0d5d0d3 --- TD_WaterSample/loader.py (.../loader.py) (revision a7779af44ced3be6e30e4d4d67125d171a641d09) +++ TD_WaterSample/loader.py (.../loader.py) (revision fc43fc2ed484aec6f49ef1c7f67a71c4d0d5d0d3) @@ -12,7 +12,8 @@ from engine.dynamicloader import DynamicLoader # plugin specific -from leahi_dialin.common.msg_defs import MsgIds, MsgFieldPositions +from leahi_dialin.common.msg_ids import MsgIds +from leahi_dialin.common.constants import MSG_HEADER_SIZE from leahi_dialin.protocols import CAN from leahi_dialin.utils import conversions @@ -111,6 +112,6 @@ :return: none """ message = message['message'] - index = MsgFieldPositions.START_POS_FIELD_1 + index = MSG_HEADER_SIZE val,index = conversions.bytearray_to_float( message, index) self.lbWaterSampleResult.setText(f"{val:.2f}")