Merge branch 'master' into hitag

* master:
  Fix delay in acquisition and DoAcquisition_config usage. Fixes #524
  chg: 'data samples' - colors
  only set new timeout if its faster :)
This commit is contained in:
Philippe Teuwen 2020-01-15 16:28:27 +01:00
commit cfc76098c5
4 changed files with 12 additions and 9 deletions

View file

@ -114,13 +114,15 @@ void initSampleBuffer(uint32_t *sample_size) {
data.buffer = BigBuf_get_addr();
memset(data.buffer, 0, *sample_size);
// We can't erase the buffer now, it would drastically delay the acquisition
// memset(data.buffer, 0, *sample_size);
} else {
*sample_size = MIN(*sample_size, BigBuf_max_traceLen());
data.buffer = BigBuf_malloc(*sample_size);
memset(data.buffer, 0, *sample_size);
// We can't erase the buffer now, it would drastically delay the acquisition
// memset(data.buffer, 0, *sample_size);
}
//