summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGert Pellin <gpe@odoo.com>2018-09-26 15:44:43 +0200
committerGert Pellin - GPE <switch87@users.noreply.github.com>2018-09-26 15:49:17 +0200
commitb4bcf86f8ecfbf43c1a703f044af98c6beb471f0 (patch)
tree46c86a25e4784bf6dd87fe26730256bf4e944c8e
parent8513aa0f9838f3fe5a86e9684ac254b81a3fd5a9 (diff)
[FIX] hw_scale: read values from Adam scale
with migration from python2 to python3 not all regexes where converted to byte-array.
-rw-r--r--addons/hw_scale/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hw_scale/controllers/main.py b/addons/hw_scale/controllers/main.py
index 8dc65392edb..d0425446f83 100644
--- a/addons/hw_scale/controllers/main.py
+++ b/addons/hw_scale/controllers/main.py
@@ -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",