[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:
Gert Pellin
2018-09-26 15:49:17 +02:00
committed by Gert Pellin - GPE
parent 8513aa0f98
commit b4bcf86f8e
+1 -1
View File
@@ -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",