]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlfindala.c
avoid vast number of warnings with clang compiler
[proxmark3-svn] / client / cmdlfindala.c
index 1a1d2a06ecb85e865c7b31690ef3ba0d68fb1a56..fc396ac61db859e8314ec5f6b97bcbbddf4fe99b 100644 (file)
@@ -5,6 +5,7 @@
 // the license.
 //-----------------------------------------------------------------------------
 // Low frequency Indala commands
+// PSK1, rf/32, 64 or 224 bits (known)
 //-----------------------------------------------------------------------------
 
 #include <stdio.h>
@@ -34,16 +35,14 @@ int CmdIndalaDecode(const char *Cmd) {
        }
 
        if (!ans) {
-       if (g_debugMode) 
-               PrintAndLog("Error1: %i",ans);
+               if (g_debugMode) PrintAndLog("Error1: %i",ans);
                return 0;
        }
        uint8_t invert=0;
        size_t size = DemodBufferLen;
        int startIdx = indala26decode(DemodBuffer, &size, &invert);
        if (startIdx < 0 || size > 224) {
-               if (g_debugMode)
-               PrintAndLog("Error2: %i",startIdx);
+               if (g_debugMode) PrintAndLog("Error2: %i",startIdx);
                return -1;
        }
        setDemodBuf(DemodBuffer, size, (size_t)startIdx);
@@ -75,8 +74,7 @@ int CmdIndalaDecode(const char *Cmd) {
 }
 
 int CmdIndalaRead(const char *Cmd) {
-       CmdLFRead("s");
-       getSamples("30000",false);
+       lf_read(true, 30000);
        return CmdIndalaDecode("");
 }
 
Impressum, Datenschutz