From 5ebcae1eb64f5ba1eb7ee2881ec93fbcffd34887 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Wed, 22 Apr 2026 20:21:05 +0200 Subject: [PATCH] well? --- scripts/98-uecp.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/98-uecp.lua b/scripts/98-uecp.lua index ad73f1e..b04d4e9 100644 --- a/scripts/98-uecp.lua +++ b/scripts/98-uecp.lua @@ -236,7 +236,7 @@ end ---@param packet string function uecp.parse_uecp(packet) - local unstuffed = undo_byte_stuff(string.sub(packet, 2)) + local unstuffed = undo_byte_stuff(string.sub(packet, 2, #packet - 1)) local addr1 = string.byte(unstuffed, 1) local addr2 = string.byte(unstuffed, 2) @@ -249,8 +249,6 @@ function uecp.parse_uecp(packet) if mfl ~= #data then print("data len not right") - print(mfl) - print(#data) return end