mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 02:27:26 -07:00
chg: enhanced rtrim for command prompt.
This commit is contained in:
parent
80722fe067
commit
c2725bfa99
4 changed files with 14 additions and 13 deletions
|
@ -20,7 +20,6 @@
|
|||
static int l_SendCommand(lua_State *L){
|
||||
|
||||
/*
|
||||
*
|
||||
The SendCommand (native) expects the following structure:
|
||||
|
||||
typedef struct {
|
||||
|
@ -34,11 +33,9 @@ static int l_SendCommand(lua_State *L){
|
|||
|
||||
==> A 544 byte buffer will do.
|
||||
**/
|
||||
//Pop cmd
|
||||
size_t size;
|
||||
const char *data = luaL_checklstring(L, 1, &size);
|
||||
if(size != sizeof(UsbCommand))
|
||||
{
|
||||
if (size != sizeof(UsbCommand)) {
|
||||
printf("Got data size %d, expected %d" , (int) size,(int) sizeof(UsbCommand));
|
||||
lua_pushstring(L,"Wrong data size");
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue