From: marshmellow42 Date: Fri, 13 Mar 2015 15:18:55 +0000 (-0400) Subject: minor g-prox-ii demod fix X-Git-Tag: show~2^2~5 X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/d9d41e0f3f765639dd31c4dcf26ec18dbf646fd4 minor g-prox-ii demod fix lf search was occasionally outputting false results. --- diff --git a/client/cmddata.c b/client/cmddata.c index 6d85cf68..9e3cd304 100644 --- a/client/cmddata.c +++ b/client/cmddata.c @@ -623,13 +623,13 @@ int CmdG_Prox_II_Demod(const char *Cmd) int ans = ASKrawDemod(Cmd, FALSE); if (ans <= 0) { if (g_debugMode) PrintAndLog("Error AskrawDemod: %d",ans); - return ans; + return 0; //ans; } size_t size = DemodBufferLen; ans = BiphaseRawDecode(DemodBuffer, &size, 0, 0); if (ans !=0) { if (g_debugMode) PrintAndLog("Error BiphaseRawDecode: %d",ans); - return ans; + return 0; //ans; } //call lfdemod.c demod for gProxII ans = gProxII_Demod(DemodBuffer, &size); @@ -639,7 +639,7 @@ int CmdG_Prox_II_Demod(const char *Cmd) ans = BiphaseRawDecode(DemodBuffer, &size, 1, 0); if (ans != 0) { if (g_debugMode) PrintAndLog("Error BiphaseRawDecode: %d",ans); - return ans; + return 0;//ans; } ans = gProxII_Demod(DemodBuffer, &size); if (ans < 0) {