]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmddata.c
add some Q5 functionality - add t55xx wipe cmd
[proxmark3-svn] / client / cmddata.c
index 580352780720f8ce12f71885477b04ad3e312293..75f44d8f1c9b2229789e29bd50f46e6b9772e0d6 100644 (file)
@@ -646,7 +646,7 @@ int CmdVikingDemod(const char *Cmd)
                return 0;
        }
        size_t size = DemodBufferLen;
-       //call lfdemod.c demod for gProxII
+       //call lfdemod.c demod for Viking
        int ans = VikingDemod_AM(DemodBuffer, &size);
        if (ans < 0) {
                if (g_debugMode) PrintAndLog("Error Viking_Demod %d", ans);
@@ -1507,6 +1507,10 @@ int CmdFDXBdemodBI(const char *Cmd){
                if (g_debugMode) PrintAndLog("Error FDXBDemod , no startmarker found :: %d",preambleIndex);
                return 0;
        }
+       if (size != 128) {
+               if (g_debugMode) PrintAndLog("Error incorrect data length found");
+               return 0;
+       }
 
        setDemodBuf(BitStream, 128, preambleIndex);
 
Impressum, Datenschutz