Skip to content

Commit

Permalink
Fix bug decoding temperature data from flowmeters (#761)
Browse files Browse the repository at this point in the history
  • Loading branch information
swh76 authored Oct 1, 2024
1 parent 5dcf1a7 commit a86e845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion socs/agents/ifm_sbn246_flowmeter/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a86e845

Please sign in to comment.