fix lf get sample bits vs bytes bug

This commit is contained in:
marshmellow42 2017-07-17 17:40:10 -04:00
parent 26ea310f0e
commit c68f5fc7ec

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