X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/e55b441992629938fecd75693d204dd98831d3ba..496bb4be3306b86699abdab9ecf4e677fd61c92b:/armsrc/iso15693.c diff --git a/armsrc/iso15693.c b/armsrc/iso15693.c index 3b39d576..bb5bdfe2 100644 --- a/armsrc/iso15693.c +++ b/armsrc/iso15693.c @@ -256,11 +256,10 @@ void TransmitTo15693Tag(const uint8_t *cmd, int len, uint32_t *start_time) { *start_time = (*start_time - DELAY_ARM_TO_TAG) & 0xfffffff0; - while (GetCountSspClk() > *start_time) { // we may miss the intended time - *start_time += 16; // next possible time + if (GetCountSspClk() > *start_time) { // we may miss the intended time + *start_time = (GetCountSspClk() + 16) & 0xfffffff0; // next possible time } - while (GetCountSspClk() < *start_time) /* wait */ ; @@ -449,11 +448,11 @@ static int inline __attribute__((always_inline)) Handle15693SamplesFromTag(uint1 DecodeTag->posCount = 2; DecodeTag->state = STATE_TAG_RECEIVING_DATA; FpgaDisableTracing(); // DEBUGGING - Dbprintf("amplitude = %d, threshold_sof = %d, threshold_half/4 = %d, previous_amplitude = %d", - amplitude, - DecodeTag->threshold_sof, - DecodeTag->threshold_half/4, - DecodeTag->previous_amplitude); // DEBUGGING + // Dbprintf("amplitude = %d, threshold_sof = %d, threshold_half/4 = %d, previous_amplitude = %d", + // amplitude, + // DecodeTag->threshold_sof, + // DecodeTag->threshold_half/4, + // DecodeTag->previous_amplitude); // DEBUGGING LED_C_ON(); } else { DecodeTag->posCount++;