From 87d88574a16823220384fa14dd44cb0e787bcd79 Mon Sep 17 00:00:00 2001 From: lhdjply Date: Thu, 10 Oct 2024 10:24:29 +0800 Subject: [PATCH] fix(protocols): fix add_sum tips name 'a' is not defined Signed-off-by: lhdjply --- COMTool/plugins/protocols.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/COMTool/plugins/protocols.py b/COMTool/plugins/protocols.py index 024a20e..f96d511 100644 --- a/COMTool/plugins/protocols.py +++ b/COMTool/plugins/protocols.py @@ -29,7 +29,7 @@ def decode(data:bytes) -> bytes: return data def encode(data:bytes) -> bytes: - return data + bytes([sum(a) % 256]) + return data + bytes([sum(data) % 256]) '''