faster return
This commit is contained in:
1 parent
9bbdb747c8
commit
3ea2cb0eda
1 file changed
+5
@@ -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
|
// 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) {
|
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];
|
uint8_t parity[(nbytes(bitLen) - 1) / 8 + 1];
|
||||||
memset(parity, 0x00, sizeof(parity));
|
memset(parity, 0x00, sizeof(parity));
|
||||||
// parity has amount of leftover bits.
|
// parity has amount of leftover bits.
|
||||||
|
|||||||
Reference in new issue
Block a user