]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/commands.lua
Fixed error from r769 where I added -ldl switch for linux, but still forgot to remove...
[proxmark3-svn] / client / commands.lua
index e09adb36cd8af0c39b9e280104a7953f39576a89..bf2a8a1fb4e0995b01257513be9669cb732ac5b9 100644 (file)
@@ -162,6 +162,10 @@ Command = {
                
                return o
        end,
+       parse = function (packet)
+               local count,cmd,arg1,arg2,arg3,data = bin.unpack('LLLLH512',packet)
+               return Command:new{cmd = cmd, arg1 = arg1, arg2 = arg2, arg3 = arg3, data = data}
+       end,
 }
 function Command:__tostring()
        local output = ("%s\r\nargs : (%s, %s, %s)\r\ndata:\r\n%s\r\n"):format(
@@ -181,6 +185,4 @@ function Command:getBytes()
        
        return bin.pack("LLLLH",cmd, arg1, arg2, arg3,data);
 end
-
-
 return _commands
\ No newline at end of file
Impressum, Datenschutz