]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
fix lf get sample bits vs bytes bug 361/head
authormarshmellow42 <marshmellowrf@gmail.com>
Mon, 17 Jul 2017 21:40:10 +0000 (17:40 -0400)
committermarshmellow42 <marshmellowrf@gmail.com>
Mon, 17 Jul 2017 21:40:10 +0000 (17:40 -0400)
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