[libnfc] push by fnargwibble - tolerate errors when writing as well as reading on 2014-05-25 15:41 GMT

14 views
Skip to first unread message

lib...@googlecode.com

unread,
May 25, 2014, 11:41:45 AM5/25/14
to libnfc-...@googlegroups.com
Revision: b978c45a11a7
Author: Adam Laurie <ad...@algroup.co.uk>
Date: Sun May 25 15:39:47 2014 UTC
Log: tolerate errors when writing as well as reading

http://code.google.com/p/libnfc/source/detail?r=b978c45a11a7

Modified:
/utils/nfc-mfclassic.c

=======================================
--- /utils/nfc-mfclassic.c Mon Jan 27 23:22:33 2014 UTC
+++ /utils/nfc-mfclassic.c Sun May 25 15:39:47 2014 UTC
@@ -405,7 +405,7 @@
fflush(stdout);

// Try to authenticate for the current sector
- if (!write_block_zero && !authenticate(uiBlock)) {
+ if (!write_block_zero && !authenticate(uiBlock)
&& !bTolerateFailures) {
printf("!\nError: authentication failed for block %02x\n",
uiBlock);
return false;
}
Reply all
Reply to author
Forward
0 new messages