From b4bcf86f8ecfbf43c1a703f044af98c6beb471f0 Mon Sep 17 00:00:00 2001 From: Gert Pellin Date: Wed, 26 Sep 2018 15:44:43 +0200 Subject: [PATCH] [FIX] hw_scale: read values from Adam scale with migration from python2 to python3 not all regexes where converted to byte-array. --- addons/hw_scale/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",