]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/lualibs/hf_reader.lua
CHG: `lf read` - optional timeout, to be used when configured a threshold limit.
[proxmark3-svn] / client / lualibs / hf_reader.lua
index e75c0ff79eefa801a8d19f1a321eb7bbcc674460..da46cebbcdcd0cf707a412841041bd864b221297 100644 (file)
@@ -5,8 +5,9 @@ This library utilises other libraries under the hood, but can be used as a gener
 ]]
 
 local reader14443A = require('read14a')
+local reader14443B = require('read14b')
 local cmds = require('commands')
-local TIMEOUT = 1000
+local TIMEOUT = 2000
 
 local function sendToDevice(command, ignoreresponse)
        core.clearCommandBuffer()
@@ -24,14 +25,9 @@ end
 -- This will be moved to a separate 14443B library
 -------------------------------------------------------
 
-local function read14443B()
-       return nil, "Not implemented"
-end
 local reader14443B = {
-       read = read14443B
+       read = reader14443B.read14443b()
 }      
-
-
 -------------------------------------------------------
 -- This will be moved to a separate 1593 library
 -------------------------------------------------------
@@ -149,7 +145,7 @@ local function read15693()
                return nil, "15693 sysinfo: no answer"
        end
 
-       local count,cmd,recvLen,arg1,arg2 = bin.unpack('LLLL',result)
+       local count,cmd,recvlen,arg1,arg2 = bin.unpack('LLLL',result)
        data = string.sub(result,recvlen)
        info, err = parse15693(data)
        
Impressum, Datenschutz