tolerate errors when writing as well as reading
This commit is contained in:
parent
bb9babbeda
commit
b978c45a11
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue