Viva la revolucion

This commit is contained in:
Philippe Teuwen committed 2019-04-17 21:30:01 +02:00
1 parent 8bfc5c1b47
commit be15ad7fec
53 files changed
+861 -870

No files matched your search

+3 -3
View File
@@ -335,7 +335,7 @@ bool lf_read(bool silent, uint32_t samples) {
clearCommandBuffer();
SendCommand(&c);
UsbCommand resp;
UsbReplyNG resp;
if (g_lf_threshold_set) {
WaitForResponse(CMD_ACK, &resp);
} else {
@@ -344,8 +344,8 @@ bool lf_read(bool silent, uint32_t samples) {
return false;
}
}
// resp.arg[0] is bits read not bytes read.
getSamples(resp.arg[0] / 8, silent);
// resp.core.old.arg[0] is bits read not bytes read.
getSamples(resp.core.old.arg[0] / 8, silent);
return true;
}