chg. textual

This commit is contained in:
iceman1001 2018-05-22 12:10:56 +02:00
parent bd857b263f
commit e6b18888e7

View file

@ -66,7 +66,6 @@ local function disconnect()
return lib14a.sendToDevice(command,true) return lib14a.sendToDevice(command,true)
end end
local function writePerso() local function writePerso()
-- Used to write any data, including the keys (Key A and Key B), for all the sectors. -- Used to write any data, including the keys (Key A and Key B), for all the sectors.
-- writePerso() command parameters: -- writePerso() command parameters:
@ -203,7 +202,7 @@ local function proximityCheck()
--PreparePC-- --PreparePC--
commandString = PREPAREPC commandString = PREPAREPC
response = sendRaw(commandString, true, true) response = sendRaw(commandString, true, true)
if not response then return oops("not a Mifare plus card") end if not response then return oops("This card is not support the proximity check command.") end
OPT = string.sub(response, 5, 6) OPT = string.sub(response, 5, 6)
if tonumber(OPT) == 1 then if tonumber(OPT) == 1 then
@ -273,7 +272,7 @@ end
function main(args) function main(args)
-- Initialize the card using the already-present read14a library -- Initialize the card using the already-present read14a library
-- Perform PPS (Protocol and Parameter Selection) check to finish the ISO 14443-4 protocol. -- Perform RATS and PPS (Protocol and Parameter Selection) check to finish the ISO 14443-4 protocol.
info,err = lib14a.read(true, false) info,err = lib14a.read(true, false)
if not info then oops(err); disconnect(); return; end if not info then oops(err); disconnect(); return; end