]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlf.c
some minor lf fixes from @iceman1001
[proxmark3-svn] / client / cmdlf.c
index 41feec20d5b708b98636eaacaa71a5a4b7ce04c5..9d23d97cc99d7bccc480e3a32f1ad6d97aa82014 100644 (file)
@@ -539,7 +539,7 @@ int CmdLFSetConfig(const char *Cmd)
                return usage_lf_config();
        }
        //Bps is limited to 8, so fits in lower half of arg1
-       if(bps >> 8) bps = 8;
+       if(bps >> 4) bps = 8;
 
        sample_config config = {
                decimation,bps,averaging,divisor,trigger_threshold
@@ -1193,7 +1193,8 @@ int CmdLFfind(const char *Cmd)
                                return 1;
                        }
                }
-               ans=ASKDemod("0 0 0",TRUE,FALSE,1);
+               bool st = TRUE;
+               ans=ASKDemod_ext("0 0 0",TRUE,FALSE,1,&st);
                if (ans>0) {
                        PrintAndLog("\nUnknown ASK Modulated and Manchester encoded Tag Found!");
                        PrintAndLog("\nif it does not look right it could instead be ASK/Biphase - try 'data rawdemod ab'");
Impressum, Datenschutz