]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
minor g-prox-ii demod fix
authormarshmellow42 <marshmellowrf@gmail.com>
Fri, 13 Mar 2015 15:18:55 +0000 (11:18 -0400)
committermarshmellow42 <marshmellowrf@gmail.com>
Fri, 13 Mar 2015 15:18:55 +0000 (11:18 -0400)
lf search was occasionally outputting false results.

client/cmddata.c

index 6d85cf689203ebed14d8413aafd0b794b8ba1991..9e3cd3046934891b002716d29e7844ca68b532d3 100644 (file)
@@ -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) {
Impressum, Datenschutz