[FIX] hw_scale: read values from Adam scale
with migration from python2 to python3 not all regexes where converted to byte-array.
This commit is contained in:
committed by
Gert Pellin - GPE
parent
8513aa0f98
commit
b4bcf86f8e
@@ -95,7 +95,7 @@ ADAMEquipmentProtocol = ScaleProtocol(
|
|||||||
parity=serial.PARITY_NONE,
|
parity=serial.PARITY_NONE,
|
||||||
timeout=0.2,
|
timeout=0.2,
|
||||||
writeTimeout=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,
|
statusRegexp=None,
|
||||||
statusParse=None,
|
statusParse=None,
|
||||||
commandTerminator=b"\r\n",
|
commandTerminator=b"\r\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user