mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
FIX: 'standalone_14a mode' - cleaned up the standalone14a mode code. It now detects and simulates 4,7byte uids, like it should. code refactored to be easier to understand.
This commit is contained in:
parent
16cfceb689
commit
d760c7b3d9
3 changed files with 61 additions and 59 deletions
|
@ -708,7 +708,7 @@ static bool hitag2_read_uid(byte_t* rx, const size_t rxlen, byte_t* tx, size_t*
|
|||
case 0: {
|
||||
// Just starting or if there is no answer
|
||||
*txlen = 5;
|
||||
memcpy(tx,"\xc0",nbytes(*txlen));
|
||||
memcpy(tx,"\xC0",nbytes(*txlen));
|
||||
} break;
|
||||
// Received UID
|
||||
case 32: {
|
||||
|
@ -1296,13 +1296,12 @@ void ReaderHitag(hitag_function htf, hitag_data* htd) {
|
|||
if(rxlen > 0) {
|
||||
frame_count++;
|
||||
if (!bQuiet) {
|
||||
if (!LogTraceHitag(rx,rxlen,response,0,false)) {
|
||||
if (!LogTraceHitag(rx,rxlen, response, 0, false)) {
|
||||
DbpString("Trace full");
|
||||
if (bQuitTraceFull) {
|
||||
if (bQuitTraceFull)
|
||||
break;
|
||||
} else {
|
||||
else
|
||||
bQuiet = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue