mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-15 17:44:34 +08:00
protect debug messages
This commit is contained in:
parent
4be59e295f
commit
8696b521ef
1 changed files with 4 additions and 4 deletions
|
@ -206,7 +206,7 @@ void getHiLo(int *high, int *low, uint8_t fuzzHi, uint8_t fuzzLo) {
|
||||||
*low = signalprop.low;
|
*low = signalprop.low;
|
||||||
}
|
}
|
||||||
|
|
||||||
prnt("getHiLo fuzzed: High %d | Low %d", *high, *low);
|
// prnt("getHiLo fuzzed: High %d | Low %d", *high, *low);
|
||||||
}
|
}
|
||||||
|
|
||||||
// by marshmellow
|
// by marshmellow
|
||||||
|
@ -1566,7 +1566,7 @@ static uint16_t cleanAskRawDemod(uint8_t *bits, size_t *size, int clk, int inver
|
||||||
}
|
}
|
||||||
if (*startIdx == 0) {
|
if (*startIdx == 0) {
|
||||||
*startIdx = i - clk;
|
*startIdx = i - clk;
|
||||||
prnt("DEBUG ASK: cleanAskRawDemod minus clock [%d]", *startIdx);
|
if (g_debugMode == 2) prnt("DEBUG ASK: cleanAskRawDemod minus clock [%d]", *startIdx);
|
||||||
}
|
}
|
||||||
waveHigh = !waveHigh;
|
waveHigh = !waveHigh;
|
||||||
smplCnt = 0;
|
smplCnt = 0;
|
||||||
|
@ -1587,7 +1587,7 @@ static uint16_t cleanAskRawDemod(uint8_t *bits, size_t *size, int clk, int inver
|
||||||
}
|
}
|
||||||
if (*startIdx == 0) {
|
if (*startIdx == 0) {
|
||||||
*startIdx = i - cl_2;
|
*startIdx = i - cl_2;
|
||||||
prnt("DEBUG ASK: cleanAskRawDemod minus half clock [%d]", *startIdx);
|
if (g_debugMode == 2) prnt("DEBUG ASK: cleanAskRawDemod minus half clock [%d]", *startIdx);
|
||||||
}
|
}
|
||||||
waveHigh = !waveHigh;
|
waveHigh = !waveHigh;
|
||||||
smplCnt = 0;
|
smplCnt = 0;
|
||||||
|
@ -1651,7 +1651,7 @@ int askdemod_ext(uint8_t *bits, size_t *size, int *clk, int *invert, int maxErr,
|
||||||
errCnt = manrawdecode(bits, size, 0, &alignPos);
|
errCnt = manrawdecode(bits, size, 0, &alignPos);
|
||||||
*startIdx += ((*clk / 2) * alignPos);
|
*startIdx += ((*clk / 2) * alignPos);
|
||||||
|
|
||||||
prnt("DEBUG: (askdemod_ext) CLEAN: startIdx %i, alignPos %u , bestError %zu", *startIdx, alignPos, errCnt);
|
if (g_debugMode == 2) prnt("DEBUG: (askdemod_ext) CLEAN: startIdx %i, alignPos %u , bestError %zu", *startIdx, alignPos, errCnt);
|
||||||
}
|
}
|
||||||
return errCnt;
|
return errCnt;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue