removing some crc
This commit is contained in:
@@ -172,11 +172,15 @@ function main(args)
|
|||||||
local d0_d15 = getdata(res)
|
local d0_d15 = getdata(res)
|
||||||
|
|
||||||
payload = "80"
|
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
|
if err then return end
|
||||||
|
|
||||||
local d16_d31 = getdata(res)
|
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)
|
print(block, d0_d15, d16_d31)
|
||||||
table.insert(block_data, d0_d15..d16_31)
|
table.insert(block_data, d0_d15..d16_31)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user