mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-15 11:43:14 +08:00
fixes #85
This commit is contained in:
parent
fb26bb5436
commit
37a71c7a96
1 changed files with 2 additions and 1 deletions
|
@ -945,9 +945,10 @@ int DetectStrongAskClock(uint8_t dest[], size_t size, uint8_t high, uint8_t low,
|
||||||
// set clock
|
// set clock
|
||||||
if (g_debugMode==2) prnt("DEBUG ASK: detectstrongASKclk smallest wave: %d",minClk);
|
if (g_debugMode==2) prnt("DEBUG ASK: detectstrongASKclk smallest wave: %d",minClk);
|
||||||
for (uint8_t clkCnt = 0; clkCnt<7; clkCnt++) {
|
for (uint8_t clkCnt = 0; clkCnt<7; clkCnt++) {
|
||||||
if (minClk >= clocks[clkCnt]-(clocks[clkCnt]/8) && minClk <= clocks[clkCnt]+1)
|
if (minClk >= clocks[clkCnt]-(clocks[clkCnt]/8) && minClk <= clocks[clkCnt]+1) {
|
||||||
*clock = clocks[clkCnt];
|
*clock = clocks[clkCnt];
|
||||||
return shortestWaveIdx;
|
return shortestWaveIdx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue