diff --git a/client/graph.c b/client/graph.c index 6e57e331d..1a1bdefe2 100644 --- a/client/graph.c +++ b/client/graph.c @@ -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; diff --git a/common/lfdemod.c b/common/lfdemod.c index 2cdbb5cbc..33a954bdc 100644 --- a/common/lfdemod.c +++ b/common/lfdemod.c @@ -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;