From 53d3c446f2f3e33dd9fcc0ceb514e27646062739 Mon Sep 17 00:00:00 2001 From: "Shawn W. Henderson" <20823858+swh76@users.noreply.github.com> Date: Thu, 26 Sep 2024 13:07:18 -0700 Subject: [PATCH] Totally unimportant correction to temperature decode. --- 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)