make style

This commit is contained in:
Philippe Teuwen 2025-03-23 23:14:18 +01:00
commit 6359471c5e
2 changed files with 5 additions and 5 deletions

View file

@ -176,7 +176,7 @@ local function get_uid_from_user()
local uid = extract_uid(log_content) local uid = extract_uid(log_content)
if uid and #uid == 10 then if uid and #uid == 10 then
print("Readed EM4102 ID: " ..ac.green.. uid ..ac.reset) print("Readed EM4102 ID: " ..ac.green.. uid ..ac.reset)
return uid return uid
else else
io.write(ac.yellow .. "Error reading UID. Please adjust FOB position and press Enter..." .. ac.reset) io.write(ac.yellow .. "Error reading UID. Please adjust FOB position and press Enter..." .. ac.reset)
io.read() io.read()
@ -221,8 +221,8 @@ end
local function main(args) local function main(args)
for o, a in getopt.getopt(args, 'h') do for o, a in getopt.getopt(args, 'h') do
if o == 'h' then if o == 'h' then
return help() return help()
end end
end end
local blocks = {} local blocks = {}
@ -254,7 +254,7 @@ local function main(args)
io.write("Place the " .. ac.cyan .. "T5577" .. ac.reset .. " tag on the coil for writing and press " .. ac.cyan .. "Enter..." .. ac.reset) io.write("Place the " .. ac.cyan .. "T5577" .. ac.reset .. " tag on the coil for writing and press " .. ac.cyan .. "Enter..." .. ac.reset)
io.read() io.read()
write(blocks, block0_value) write(blocks, block0_value)
print(dash) print(dash)
timer(3) timer(3)
local verified = verify_written_data(blocks, block0_value, uid_count) local verified = verify_written_data(blocks, block0_value, uid_count)
while not verified do while not verified do

View file

@ -13357,6 +13357,6 @@
"metadata": { "metadata": {
"commands_extracted": 767, "commands_extracted": 767,
"extracted_by": "PM3Help2JSON v1.00", "extracted_by": "PM3Help2JSON v1.00",
"extracted_on": "2025-03-22T12:16:04" "extracted_on": "2025-03-23T22:12:59"
} }
} }