mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
fix max duration in LogTrace
This commit is contained in:
parent
a999243a45
commit
23d754c85f
1 changed files with 2 additions and 2 deletions
|
@ -156,8 +156,8 @@ bool RAMFUNC LogTrace(const uint8_t *btBytes, uint16_t iLen, uint32_t timestamp_
|
||||||
tracing = false; // don't trace any more
|
tracing = false; // don't trace any more
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (timestamp_end - timestamp_start > UINT16_MAX) {
|
if (timestamp_end - timestamp_start > 0x7FFF) {
|
||||||
return false; // duration too long
|
return false; // duration too long, must be max 15 bits
|
||||||
}
|
}
|
||||||
hdr->timestamp = timestamp_start;
|
hdr->timestamp = timestamp_start;
|
||||||
hdr->duration = timestamp_end - timestamp_start;
|
hdr->duration = timestamp_end - timestamp_start;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue