From: marshmellow42 <marshmellowrf@gmail.com>
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=--cc

fix lf get sample bits vs bytes bug
---

c68f5fc7ec56cb0c7fc048a45f51684ab6ea096c
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;
 }