Skip to content

Commit

Permalink
in sdi12 measurements adapt number of expeced digits for generic "C" …
Browse files Browse the repository at this point in the history
…commands
  • Loading branch information
ftylitak committed Sep 12, 2024
1 parent b8a8252 commit 56b8395
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions insighioNode/apps/demo_console/scenario_advind_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ def read_sdi12_sensor(sdi12, address, measurements):
responseArray = sdi12._send(address + "XT!") # trigger next round of measurements
else:
set_value(measurements, "sdi12_{}_i".format(address), manufacturer, None)
responseArrayC = sdi12.get_measurement(address, "C")
responseArrayM = sdi12.get_measurement(address, "M")
responseArrayC = sdi12.get_measurement(address, "C", 2)
responseArrayM = sdi12.get_measurement(address, "M", 1)
parse_generic_sdi12(address, responseArrayC, measurements, "sdi12", None, "_c")
parse_generic_sdi12(address, responseArrayM, measurements, "sdi12", None, "_m")

Expand Down

0 comments on commit 56b8395

Please sign in to comment.