for(i = 0; i < 4; i++) {
ToSendStuffBit(1);
}
+
+ ToSendMax++;
}
// encode data using "1 out of 256" scheme
DecodeReader->state = STATE_READER_UNSYNCD;
DecodeReader->byteCount = 0;
DecodeReader->bitCount = 0;
+ DecodeReader->posCount = 0;
DecodeReader->shiftReg = 0;
}
uint8_t dmaBuf[ISO15693_DMA_BUFFER_SIZE];
// the decoder data structure
- DecodeReader_t DecodeReader;
+ DecodeReader_t DecodeReader = {0};
DecodeReaderInit(received, max_len, &DecodeReader);
// wait for last transfer to complete