mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-23 08:27:51 +08:00
Fix clock deadlock in hitag sniff
This commit is contained in:
parent
a3962c16c3
commit
6646c20ef3
1 changed files with 1 additions and 2 deletions
|
@ -739,7 +739,7 @@ void SniffHitag(void) {
|
|||
AT91C_BASE_TC1->TC_CCR = AT91C_TC_CLKEN | AT91C_TC_SWTRG;
|
||||
|
||||
// synchronized startup procedure
|
||||
while (AT91C_BASE_TC0->TC_CV > 0) {}; // wait until TC0 returned to zero
|
||||
while (AT91C_BASE_TC1->TC_CV > 0) {}; // wait until TC1 returned to zero
|
||||
|
||||
// Reset the received frame, frame count and timing info
|
||||
memset(rx, 0x00, sizeof(rx));
|
||||
|
@ -887,7 +887,6 @@ void SniffHitag(void) {
|
|||
set_tracing(false);
|
||||
|
||||
AT91C_BASE_TC1->TC_CCR = AT91C_TC_CLKDIS;
|
||||
AT91C_BASE_TC0->TC_CCR = AT91C_TC_CLKDIS;
|
||||
|
||||
// release allocated memory from BigBuff.
|
||||
BigBuf_free();
|
||||
|
|
Loading…
Reference in a new issue