mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-20 05:13:22 -07:00
Merge pull request #471 from marshmellow42/master
fix lf search bugs when no tag is on antenna …
This commit is contained in:
commit
7c84f80657
7 changed files with 59 additions and 46 deletions
|
@ -945,7 +945,7 @@ int CmdLFfind(const char *Cmd)
|
|||
PrintAndLog("\nValid EM4x05/EM4x69 Chip Found\nUse lf em 4x05readword/dump commands to read\n");
|
||||
return 1;
|
||||
}
|
||||
ans=CmdLFHitagReader("26");
|
||||
ans=CmdLFHitagReader("26"); // 26 = RHT2F_UID_ONLY
|
||||
if (ans==0) {
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -950,7 +950,6 @@ int EM4x05ReadWord_ext(uint8_t addr, uint32_t pwd, bool usePwd, uint32_t *wordDa
|
|||
}
|
||||
int testLen = (GraphTraceLen < 1000) ? GraphTraceLen : 1000;
|
||||
if (graphJustNoise(GraphBuffer, testLen)) {
|
||||
PrintAndLog("no tag not found");
|
||||
return -1;
|
||||
}
|
||||
//attempt demod:
|
||||
|
|
|
@ -239,6 +239,7 @@ int CmdLFHitagReader(const char *Cmd) {
|
|||
c.arg[0] = htf;
|
||||
|
||||
// Send the command to the proxmark
|
||||
clearCommandBuffer();
|
||||
SendCommand(&c);
|
||||
|
||||
UsbCommand resp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue