tolerate errors when writing as well as reading

This commit is contained in:
Adam Laurie 2014-05-25 16:39:47 +01:00
parent bb9babbeda
commit b978c45a11

View file

@ -405,7 +405,7 @@ write_card(int write_block_zero)
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;
}