mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
faster return
This commit is contained in:
parent
9bbdb747c8
commit
3ea2cb0eda
1 changed files with 5 additions and 0 deletions
|
@ -308,6 +308,11 @@ bool LogTrace_ISO15693(const uint8_t *bytes, uint16_t len, uint32_t ts_start, ui
|
|||
|
||||
// specific LogTrace function for bitstreams: the partial byte size is stored in first parity byte. E.g. bitstream "1100 00100010" -> partial byte: 4 bits
|
||||
bool RAMFUNC LogTraceBits(const uint8_t *btBytes, uint16_t bitLen, uint32_t timestamp_start, uint32_t timestamp_end, bool reader2tag) {
|
||||
|
||||
if ( bitLen == 0 ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
uint8_t parity[(nbytes(bitLen) - 1) / 8 + 1];
|
||||
memset(parity, 0x00, sizeof(parity));
|
||||
// parity has amount of leftover bits.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue