mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
Viva la revolucion
This commit is contained in:
parent
8bfc5c1b47
commit
be15ad7fec
53 changed files with 861 additions and 870 deletions
|
@ -184,10 +184,10 @@ static int l_WaitForResponseTimeout(lua_State *L) {
|
|||
ms_timeout = luaL_checkunsigned(L, 2);
|
||||
}
|
||||
|
||||
UsbCommand response;
|
||||
if (WaitForResponseTimeout(cmd, &response, ms_timeout)) {
|
||||
UsbReplyNG resp;
|
||||
if (WaitForResponseTimeout(cmd, &resp, ms_timeout)) {
|
||||
//Push it as a string
|
||||
lua_pushlstring(L, (const char *)&response, sizeof(UsbCommand));
|
||||
lua_pushlstring(L, (const char *)&resp, sizeof(UsbReplyNG));
|
||||
return 1;
|
||||
} else {
|
||||
//signal error by returning Nil, errorstring
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue