diff --git a/armsrc/iso15693.c b/armsrc/iso15693.c index c8824a81c..cc46ca9ea 100644 --- a/armsrc/iso15693.c +++ b/armsrc/iso15693.c @@ -313,12 +313,13 @@ static int GetIso15693AnswerFromTag(uint8_t *receivedResponse, int maxLen, int * //SpinDelay(60); // greg - experiment to get rid of some of the 0 byte/failed reads for(;;) { + WDT_HIT(); + if(AT91C_BASE_SSC->SSC_SR & (AT91C_SSC_TXRDY)) AT91C_BASE_SSC->SSC_THR = 0x43; if(AT91C_BASE_SSC->SSC_SR & (AT91C_SSC_RXRDY)) { - int8_t b; - b = (int8_t)AT91C_BASE_SSC->SSC_RHR; + int8_t b = (int8_t)AT91C_BASE_SSC->SSC_RHR; // The samples are correlations against I and Q versions of the // tone that the tag AM-modulates, so every other sample is I, @@ -439,6 +440,8 @@ static int GetIso15693AnswerFromSniff(uint8_t *receivedResponse, int maxLen, int //SpinDelay(60); // greg - experiment to get rid of some of the 0 byte/failed reads for(;;) { + WDT_HIT(); + if(AT91C_BASE_SSC->SSC_SR & (AT91C_SSC_TXRDY)) AT91C_BASE_SSC->SSC_THR = 0x43;