mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
style
This commit is contained in:
parent
38f6fd037f
commit
682f23440d
2 changed files with 14 additions and 14 deletions
|
@ -521,12 +521,12 @@ int DetectStrongAskClock(uint8_t *dest, size_t size, int high, int low, int *clo
|
||||||
|
|
||||||
int foo = getClosestClock(minClk);
|
int foo = getClosestClock(minClk);
|
||||||
if (foo > 0) {
|
if (foo > 0) {
|
||||||
for (uint8_t i = 0; i < 10; i++) {
|
for (uint8_t j = 0; j < 10; j++) {
|
||||||
if (tmpclk[i][0] == foo) {
|
if (tmpclk[j][0] == foo) {
|
||||||
tmpclk[i][1]++;
|
tmpclk[j][1]++;
|
||||||
|
|
||||||
if (tmpclk[i][2] == 0) {
|
if (tmpclk[j][2] == 0) {
|
||||||
tmpclk[i][2] = shortestWaveIdx;
|
tmpclk[j][2] = shortestWaveIdx;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -536,18 +536,18 @@ int DetectStrongAskClock(uint8_t *dest, size_t size, int high, int low, int *clo
|
||||||
|
|
||||||
// find the clock with most hits and it the first index it was encountered.
|
// find the clock with most hits and it the first index it was encountered.
|
||||||
int max = 0;
|
int max = 0;
|
||||||
for (uint8_t i = 0; i < 10; i++) {
|
for (uint8_t j = 0; j < 10; j++) {
|
||||||
if (g_debugMode == 2) {
|
if (g_debugMode == 2) {
|
||||||
prnt("DEBUG, ASK, clocks %u | hits %u | idx %u"
|
prnt("DEBUG, ASK, clocks %u | hits %u | idx %u"
|
||||||
, tmpclk[i][0]
|
, tmpclk[j][0]
|
||||||
, tmpclk[i][1]
|
, tmpclk[j][1]
|
||||||
, tmpclk[i][2]
|
, tmpclk[j][2]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (max < tmpclk[i][1]) {
|
if (max < tmpclk[j][1]) {
|
||||||
*clock = tmpclk[i][0];
|
*clock = tmpclk[j][0];
|
||||||
shortestWaveIdx = tmpclk[i][2];
|
shortestWaveIdx = tmpclk[j][2];
|
||||||
max = tmpclk[i][1];
|
max = tmpclk[j][1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -79,7 +79,7 @@ extern size_t removeParity(uint8_t *bits, size_t startIdx, uint8_t pLen, uint8
|
||||||
|
|
||||||
//tag specific
|
//tag specific
|
||||||
extern int detectAWID(uint8_t *dest, size_t *size, int *waveStartIdx);
|
extern int detectAWID(uint8_t *dest, size_t *size, int *waveStartIdx);
|
||||||
extern int Em410xDecode(uint8_t *dest, size_t *size, size_t *startIdx, uint32_t *hi, uint64_t *lo);
|
extern int Em410xDecode(uint8_t *bits, size_t *size, size_t *start_idx, uint32_t *hi, uint64_t *lo);
|
||||||
extern int HIDdemodFSK(uint8_t *dest, size_t *size, uint32_t *hi2, uint32_t *hi, uint32_t *lo, int *waveStartIdx);
|
extern int HIDdemodFSK(uint8_t *dest, size_t *size, uint32_t *hi2, uint32_t *hi, uint32_t *lo, int *waveStartIdx);
|
||||||
extern int detectIdteck(uint8_t *dest, size_t *size);
|
extern int detectIdteck(uint8_t *dest, size_t *size);
|
||||||
extern int detectIOProx(uint8_t *dest, size_t *size, int *waveStartIdx);
|
extern int detectIOProx(uint8_t *dest, size_t *size, int *waveStartIdx);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue