From: marshmellow42 Date: Mon, 17 Jul 2017 21:40:10 +0000 (-0400) Subject: fix lf get sample bits vs bytes bug X-Git-Tag: v3.1.0~185^2 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/c68f5fc7ec56cb0c7fc048a45f51684ab6ea096c?ds=inline;hp=26ea310f0e5d5158ede05e0236e315b2b1cb5bdb fix lf get sample bits vs bytes bug --- diff --git a/client/cmdlf.c b/client/cmdlf.c index 28b758b6..6a5a2fbe 100644 --- a/client/cmdlf.c +++ b/client/cmdlf.c @@ -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; }