From cd892035dd1e2c9ba19f0045763151b3c21e7f95 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sun, 11 Oct 2020 13:16:23 +0200 Subject: [PATCH] em tearoff check --- client/luascripts/lf_em_tearoff_protect.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/luascripts/lf_em_tearoff_protect.lua b/client/luascripts/lf_em_tearoff_protect.lua index abf097ca9..4b78f3eaf 100644 --- a/client/luascripts/lf_em_tearoff_protect.lua +++ b/client/luascripts/lf_em_tearoff_protect.lua @@ -111,6 +111,10 @@ local function main(args) else rd_value = ('%08X'):format(word14) end + if rd_value == '00008000' then + print('Tag already fully unlocked, nothing to do') + return nil + end local wr_value = '00000000' n = n or 2 sd = sd or 2000