mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-07-14 01:03:01 -07:00
Andreas fix for LEGIC MIM1024
This commit is contained in:
parent
83a9b236fe
commit
a2b1414f43
2 changed files with 49 additions and 17 deletions
|
@ -209,8 +209,8 @@ int CmdLegicRFRead(const char *Cmd)
|
|||
{
|
||||
int byte_count=0,offset=0;
|
||||
sscanf(Cmd, "%i %i", &offset, &byte_count);
|
||||
if(byte_count == 0) byte_count = 256;
|
||||
if(byte_count + offset > 256) byte_count = 256 - offset;
|
||||
if(byte_count == 0) byte_count = -1;
|
||||
if(byte_count + offset > 1024) byte_count = 1024 - offset;
|
||||
UsbCommand c={CMD_READER_LEGIC_RF, {offset, byte_count, 0}};
|
||||
SendCommand(&c);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue