From c68f5fc7ec56cb0c7fc048a45f51684ab6ea096c Mon Sep 17 00:00:00 2001 From: marshmellow42 Date: Mon, 17 Jul 2017 17:40:10 -0400 Subject: [PATCH 1/1] fix lf get sample bits vs bytes bug --- client/cmdlf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.5