From ec7a7ded49997846ae77ab8a6a3089f5a5a177a2 Mon Sep 17 00:00:00 2001 From: Asaril Date: Thu, 12 Mar 2020 13:54:26 +0100 Subject: [PATCH] Fix scaling of weight value --- scalesrv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scalesrv.py b/scalesrv.py index 8004bb9..8ce6a4b 100644 --- a/scalesrv.py +++ b/scalesrv.py @@ -32,7 +32,7 @@ def do_publish(data): bridge = data[2:14] unk_id = data[14:39] unk_val = data[30:38] - weight = int(data[38:42],16) + weight = int(data[38:42],16) / 100 bia = ( int(data[42:50],16), int(data[42:46],16),