change demod printing

This commit is contained in:
iceman1001 2017-10-30 20:33:11 +01:00
parent 9632d91240
commit 54e8a0ae2b
2 changed files with 3 additions and 3 deletions

View file

@ -283,8 +283,8 @@ bool is_justnoise(int *bits, uint32_t size) {
// measure amplitude of signal
bool isnoise = ABS(high - mean) < NOICE_AMPLITUDE_THRESHOLD;
if (g_debugMode == 2)
PrintAndLog("DEBUG: (is_justnoise) mean %u | hi %u | low %u | IS NOISE %c", mean, high, low, isnoise?'Y':'N');
if (g_debugMode == 1)
PrintAndLog("DEBUG: (is_justnoise) mean %i | hi %i | low %i | IS NOISE %c", mean, high, low, isnoise?'Y':'N');
return isnoise;

View file

@ -98,7 +98,7 @@ bool justNoise(uint8_t *bits, size_t size) {
// measure amplitude of signal
bool isnoise = (high - mean) < NOICE_AMPLITUDE_THRESHOLD;
if (g_debugMode == 2)
if (g_debugMode == 1)
prnt("DEBUG: (justNoise) mean %u | hi %u | low %u | IS NOISE %c", mean, high, low, isnoise?'Y':'N');
return isnoise;