From 0004b1075e9362934c0e4e3ea1c7613ab2ee3d13 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 28 May 2019 05:23:48 -0400 Subject: [PATCH] chg: lf cotag demod - adjusted error trigger --- client/cmdlfcotag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/cmdlfcotag.c b/client/cmdlfcotag.c index d7c6eff7a..1637e293c 100644 --- a/client/cmdlfcotag.c +++ b/client/cmdlfcotag.c @@ -36,8 +36,8 @@ static int CmdCOTAGDemod(const char *Cmd) { uint8_t alignPos = 0; uint16_t err = manrawdecode(bits, &bitlen, 1, &alignPos); - if (err == 0xFFFF) { - if (g_debugMode) PrintAndLogEx(DEBUG, "DEBUG: Error - COTAG too many errors: %d", err); + if (err > 50 ) { + PrintAndLogEx(DEBUG, "DEBUG: Error - COTAG too many errors: %d", err); return PM3_ESOFT; }