if(tracepos == 0) {
first_timestamp = timestamp;
}
+
+ // Break and stick with current result if buffer was not completely full
+ if (timestamp == 0x44444444) break;
+
tracepos += 4;
duration = *((uint16_t *)(trace + tracepos));
tracepos += 2;
uint8_t *parityBytes = trace + tracepos;
tracepos += parity_len;
- // Break and stick with current result if buffer was not completely full
- if (timestamp == 0x44444444) break;
-
char line[16][110];
for (int j = 0; j < data_len; j++) {
int oddparity = 0x01;
if(select_status == 0) {
PrintAndLog("iso14443a card select failed");
+ // disconnect
+ c.arg[0] = 0;
+ c.arg[1] = 0;
+ c.arg[2] = 0;
+ SendCommand(&c);
return 0;
}