]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
Merge pull request #361 from marshmellow42/master
authorIceman <iceman@iuse.se>
Tue, 18 Jul 2017 07:06:49 +0000 (09:06 +0200)
committerGitHub <noreply@github.com>
Tue, 18 Jul 2017 07:06:49 +0000 (09:06 +0200)
fix lf get sample bits vs bytes bug

client/cmdlf.c

index 28b758b6fbb2ca7b895c838d3f7fb4b0864fb877..6a5a2fbe927e5a74dbaae87c9a74f5fea7c770fd 100644 (file)
@@ -350,7 +350,8 @@ bool lf_read(bool silent, uint32_t samples) {
                        return false;
                }
        }
-       getSamples(resp.arg[0], silent);
+       // resp.arg[0] is bits read not bytes read.
+       getSamples(resp.arg[0]/8, silent);
 
        return true;
 }
Impressum, Datenschutz