From 0be6737ad903e85340ff8a900d310a492c7cbff4 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 4 Feb 2020 17:38:02 +0100 Subject: [PATCH] debug state --- common/lfdemod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lfdemod.c b/common/lfdemod.c index 325294258..4dcd46172 100644 --- a/common/lfdemod.c +++ b/common/lfdemod.c @@ -1656,7 +1656,7 @@ int askdemod_ext(uint8_t *bits, size_t *size, int *clk, int *invert, int maxErr, return errCnt; } - prnt("DEBUG: (askdemod_ext) Weak wave detected: startIdx %i", *startIdx); + if (g_debugMode == 2) prnt("DEBUG: (askdemod_ext) Weak wave detected: startIdx %i", *startIdx); int lastBit; //set first clock check - can go negative size_t i, bitnum = 0; //output counter