From c454b1f3e61ae4599c6ff0e3d31a6b8f88bb11ec Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Thu, 15 Oct 2020 23:36:17 +0200 Subject: [PATCH] sync script --- client/luascripts/lf_em_tearoff_protect.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/client/luascripts/lf_em_tearoff_protect.lua b/client/luascripts/lf_em_tearoff_protect.lua index 7ab6f9314..8d18ec5da 100644 --- a/client/luascripts/lf_em_tearoff_protect.lua +++ b/client/luascripts/lf_em_tearoff_protect.lua @@ -303,17 +303,17 @@ local function main(args) else print(('[=] Status: failed to commit => '..ansicolors.red..'FAIL: '..ansicolors.reset..'14: %08X 15: %08X'):format(word14b, word15b)) end + if auto then + n = 0 + ed = sd + else + tries = 0 + soon = 0 + late = 0 + end else print(('[=] Status: 15 bitflipped but inactive => '..ansicolors.yellow..'PROMISING: '..ansicolors.reset..'14: %08X 15: '..ansicolors.cyan..'%08X'..ansicolors.reset):format(word14, word15)) end - if auto then - n = 0 - ed = sd - else - tries = 0 - soon = 0 - late = 0 - end end end if not auto then