Skip to content
Snippets Groups Projects
Commit b4bcf86f authored by Gert Pellin's avatar Gert Pellin Committed by Gert Pellin - GPE
Browse files

[FIX] hw_scale: read values from Adam scale

with migration from python2 to python3 not all regexes where converted
to byte-array.
parent 8513aa0f
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,7 @@ ADAMEquipmentProtocol = ScaleProtocol(
parity=serial.PARITY_NONE,
timeout=0.2,
writeTimeout=0.2,
weightRegexp=r"\s*([0-9.]+)kg", # LABEL format 3 + KG in the scale settings, but Label 1/2 should work
weightRegexp=b"\s*([0-9.]+)kg", # LABEL format 3 + KG in the scale settings, but Label 1/2 should work
statusRegexp=None,
statusParse=None,
commandTerminator=b"\r\n",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment