From 46783e519ae9ac426e1f40cbe24c3e2ed5539727 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 19 Dec 2019 22:32:00 +0100 Subject: [PATCH] removing some crc --- client/luascripts/lto_dump.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/luascripts/lto_dump.lua b/client/luascripts/lto_dump.lua index 5280e99d9..0ecb07ef6 100644 --- a/client/luascripts/lto_dump.lua +++ b/client/luascripts/lto_dump.lua @@ -172,11 +172,15 @@ function main(args) local d0_d15 = getdata(res) payload = "80" - res, err = send(payload, {ignore_response = false, append_crc = false}) + res, err = send(payload, {ignore_response = false, append_crc = true}) if err then return end local d16_d31 = getdata(res) + -- remove crc bytes + d0_d15 = string.sub(d0_d15, 0, #d0_d15 - 4) + d16_d31 = string.sub(d16_d31, 0, #d16_d31 - 4) + print(block, d0_d15, d16_d31) table.insert(block_data, d0_d15..d16_31) end