mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
fix initialization of bitstream buffer
This commit is contained in:
parent
159d5ffd1a
commit
2dd250ab80
1 changed files with 5 additions and 1 deletions
|
@ -173,7 +173,11 @@ void initSampleBufferEx(uint32_t *sample_size, bool use_malloc) {
|
|||
data.buffer = BigBuf_get_addr();
|
||||
}
|
||||
|
||||
//
|
||||
// reset data stream
|
||||
data.numbits = 0;
|
||||
data.position = 0;
|
||||
|
||||
// reset samples
|
||||
samples.dec_counter = 0;
|
||||
samples.sum = 0;
|
||||
samples.counter = *sample_size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue