mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
lua: more fix mix of spaces & tabs
This commit is contained in:
parent
05ff45e550
commit
2d1a077ae4
14 changed files with 1423 additions and 1423 deletions
|
@ -1,7 +1,7 @@
|
|||
--[[
|
||||
THIS IS WORK IN PROGREESS, very much not finished.
|
||||
THIS IS WORK IN PROGREESS, very much not finished.
|
||||
|
||||
This library utilises other libraries under the hood, but can be used as a generic reader for 13.56MHz tags.
|
||||
This library utilises other libraries under the hood, but can be used as a generic reader for 13.56MHz tags.
|
||||
]]
|
||||
|
||||
local reader14443A = require('read14a')
|
||||
|
@ -10,26 +10,26 @@ local reader15693 = require('read15')
|
|||
|
||||
---
|
||||
-- This method library can be set waits or a 13.56 MHz tag, and when one is found, returns info about
|
||||
-- what tag it is.
|
||||
--
|
||||
-- what tag it is.
|
||||
--
|
||||
-- @return if successfull: an table containing card info
|
||||
-- @return if unsuccessfull : nil, error
|
||||
local function waitForTag()
|
||||
print("Waiting for card... press any key to quit")
|
||||
local readers = {reader14443A, reader14443B, reader15693}
|
||||
local i = 0;
|
||||
while not core.ukbhit() do
|
||||
i = (i % 3) +1
|
||||
r = readers[i]
|
||||
print("Reading with ",i)
|
||||
res, err = r.read()
|
||||
if res then return res end
|
||||
print(err)
|
||||
-- err means that there was no response from card
|
||||
end
|
||||
return nil, "Aborted by user"
|
||||
print("Waiting for card... press any key to quit")
|
||||
local readers = {reader14443A, reader14443B, reader15693}
|
||||
local i = 0;
|
||||
while not core.ukbhit() do
|
||||
i = (i % 3) +1
|
||||
r = readers[i]
|
||||
print("Reading with ",i)
|
||||
res, err = r.read()
|
||||
if res then return res end
|
||||
print(err)
|
||||
-- err means that there was no response from card
|
||||
end
|
||||
return nil, "Aborted by user"
|
||||
end
|
||||
|
||||
return {
|
||||
waitForTag = waitForTag,
|
||||
waitForTag = waitForTag,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue