From a86e8458e8c8c978a67d4c56860fe7bd6e11147e Mon Sep 17 00:00:00 2001 From: Shawn Henderson <20823858+swh76@users.noreply.github.com> Date: Tue, 1 Oct 2024 06:38:13 -0700 Subject: [PATCH] Fix bug decoding temperature data from flowmeters (#761) --- socs/agents/ifm_sbn246_flowmeter/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/socs/agents/ifm_sbn246_flowmeter/agent.py b/socs/agents/ifm_sbn246_flowmeter/agent.py index 0b1e9f152..1fb1f4c14 100644 --- a/socs/agents/ifm_sbn246_flowmeter/agent.py +++ b/socs/agents/ifm_sbn246_flowmeter/agent.py @@ -26,7 +26,7 @@ def extract(value): """ binary = bin(int(value, 16))[2:].zfill(32) _b_flow = binary[0:16] - _b_temp = binary[17:30] + _b_temp = binary[16:30] flow = int(_b_flow, 2) / 10 temp = int(_b_temp, 2)