PU1 adress corrected
This commit is contained in:
parent
81353c8b1f
commit
79b9f2d95d
|
|
@ -132,9 +132,9 @@ class CANBackend:
|
|||
"MV08": 100 * data[6] / 255,
|
||||
})
|
||||
|
||||
elif cob_id == 0x2B2 and len(data) >= 7:
|
||||
self.latest_data[2].update({
|
||||
"PU2_STATE" : data[0],
|
||||
elif cob_id == 0x2AB and len(data) >= 7:
|
||||
self.latest_data[1].update({
|
||||
"PU1_STATE" : data[0],
|
||||
"Conductivity_Feed" : int.from_bytes(data[1:3], 'little') / 100.0,
|
||||
"Conductivity_Permeate": int.from_bytes(data[3:5], 'little') / 100.0,
|
||||
"Conductivity_Product" : int.from_bytes(data[5:7], 'little') / 100.0,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user