mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
change debug
This commit is contained in:
parent
e055858fb8
commit
e7127514db
1 changed files with 2 additions and 3 deletions
|
@ -28,7 +28,7 @@ Pointer to highest available memory: s_bigbuf_hi
|
||||||
low 0x00
|
low 0x00
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static uint32_t s_bigbuf_size = 0;
|
static uint32_t s_bigbuf_size = 0;
|
||||||
|
|
||||||
// High memory mark
|
// High memory mark
|
||||||
static uint32_t s_bigbuf_hi = 0;
|
static uint32_t s_bigbuf_hi = 0;
|
||||||
|
@ -164,7 +164,6 @@ uint32_t BigBuf_get_traceLen(void) {
|
||||||
**/
|
**/
|
||||||
bool RAMFUNC LogTrace(const uint8_t *btBytes, uint16_t iLen, uint32_t timestamp_start, uint32_t timestamp_end, uint8_t *parity, bool readerToTag) {
|
bool RAMFUNC LogTrace(const uint8_t *btBytes, uint16_t iLen, uint32_t timestamp_start, uint32_t timestamp_end, uint8_t *parity, bool readerToTag) {
|
||||||
if (tracing == false) {
|
if (tracing == false) {
|
||||||
Dbprintf("trace is turned off");
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -187,7 +186,7 @@ bool RAMFUNC LogTrace(const uint8_t *btBytes, uint16_t iLen, uint32_t timestamp_
|
||||||
}
|
}
|
||||||
|
|
||||||
if (duration > 0x7FFF) {
|
if (duration > 0x7FFF) {
|
||||||
if (DBGLEVEL >= DBG_ERROR) { //DBG_DEBUG
|
if (DBGLEVEL >= DBG_ERROR) {
|
||||||
Dbprintf("Error in LogTrace: duration too long for 15 bits encoding: 0x%08x start: 0x%08x end: 0x%08x", duration, timestamp_start, timestamp_end);
|
Dbprintf("Error in LogTrace: duration too long for 15 bits encoding: 0x%08x start: 0x%08x end: 0x%08x", duration, timestamp_start, timestamp_end);
|
||||||
}
|
}
|
||||||
duration /= 32;
|
duration /= 32;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue