int i = 0;
int prev = -1;
- char filename[256];
- FILE* pf = NULL;
-
for (;;) {
if(i >= 1900) {
break;
line);
- if (pf) {
- fprintf(pf," +%7d: %3d: %s %s\n",
- (prev < 0 ? 0 : (timestamp - prev)),
- bits,
- (isResponse ? "TAG" : " "),
- line);
- }
+// if (pf) {
+// fprintf(pf," +%7d: %3d: %s %s\n",
+// (prev < 0 ? 0 : (timestamp - prev)),
+// bits,
+// (isResponse ? "TAG" : " "),
+// line);
+// }
prev = timestamp;
i += (len + 9);
}
- if (pf) {
- PrintAndLog("Recorded activity succesfully written to file: %s", filename);
- fclose(pf);
- }
-
+
return 0;
}
tag_mem_supplied = true;
if (fread(c.d.asBytes,48,1,pf) == 0) {
PrintAndLog("Error: File reading error");
+ fclose(pf);
return 1;
}
fclose(pf);