]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/iso15693.c
Fix util.c:116:2: error: unknown type name ‘va_list’ (#722)
[proxmark3-svn] / armsrc / iso15693.c
index 9479c3c038c875da8b5bfe98be45bfa9e8cf4de5..da2aab69bfa1d6971bc3c3a88edac8340e7f88f2 100644 (file)
@@ -175,6 +175,8 @@ static void CodeIso15693AsReader(uint8_t *cmd, int n)
        for(i = 0; i < 4; i++) {
                ToSendStuffBit(1);
        }
+       
+       ToSendMax++;
 }
 
 // encode data using "1 out of 256" scheme
@@ -837,6 +839,7 @@ static void DecodeReaderInit(uint8_t *data, uint16_t max_len, DecodeReader_t* De
        DecodeReader->state = STATE_READER_UNSYNCD;
        DecodeReader->byteCount = 0;
        DecodeReader->bitCount = 0;
+       DecodeReader->posCount = 0;
        DecodeReader->shiftReg = 0;
 }
 
@@ -861,7 +864,7 @@ static int GetIso15693CommandFromReader(uint8_t *received, size_t max_len, uint3
        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
Impressum, Datenschutz