From 868aa81c78930aef08893e79b1b35ac4acca6cfa Mon Sep 17 00:00:00 2001 From: Etienne Chassaing <60154720+cetiennec@users.noreply.github.com> Date: Wed, 20 Aug 2025 14:19:40 +0200 Subject: [PATCH] Correct Qinlet reading --- classCAN.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classCAN.py b/classCAN.py index 21a0eea..7621ad2 100644 --- a/classCAN.py +++ b/classCAN.py @@ -221,8 +221,8 @@ class CANBackend: elif cob_id == 0x2B3 and len(data) >= 8: self.latest_data[0].update({ - "Inlet_flow": int.from_bytes(data[0:2], 'little') / 100.0, - "Outlet_flow": int.from_bytes(data[2:4], 'little') / 100.0, + "Inlet_flow": int.from_bytes(data[0:2], 'little') / 10.0, + "Outlet_flow": int.from_bytes(data[2:4], 'little') / 10.0, "Pressure_perm": int.from_bytes(data[4:6], 'little') / 1000.0, "Pressure_ro": int.from_bytes(data[6:8], 'little') / 1000.0,