]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
Improved error handling
authormartin.holst@gmail.com <martin.holst@gmail.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Wed, 26 Jun 2013 09:18:31 +0000 (09:18 +0000)
committermartin.holst@gmail.com <martin.holst@gmail.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Wed, 26 Jun 2013 09:18:31 +0000 (09:18 +0000)
client/read14a.lua

index e9f9851fea97651f9e6c1939b7126e13b7e1166f..1d66057c6c9233a636d2e4eccf76cbf1ccdd1d9a 100644 (file)
@@ -74,7 +74,11 @@ local library = {
                command = Command:new{cmd = cmds.CMD_READER_ISO_14443a, 
                                                                        arg1 = ISO14A_COMMAND.ISO14A_CONNECT}
 
-               core.SendCommand(command:getBytes())
+               err = core.SendCommand(command:getBytes())
+               if err then
+                       print(err)
+                       return nil, err
+               end
                local result = core.WaitForResponseTimeout(cmds.CMD_ACK,TIMEOUT)
                if result then
                        local count,cmd,arg0,arg1,arg2 = bin.unpack('LLLL',result)
Impressum, Datenschutz