Writeprotection handler in CoreController #87

Merged
meierj merged 13 commits from mueller/writeprotect-handler into develop 2021-08-20 11:08:25 +02:00
Showing only changes of commit 24ecfe84ae - Show all commits

View File

@ -1006,7 +1006,7 @@ ReturnValue_t CoreController::setBootCopyProtection(Chip targetChip, Copy target
else if(selfCopy and (CURRENT_COPY == targetCopy)) { else if(selfCopy and (CURRENT_COPY == targetCopy)) {
performOp = true; performOp = true;
} }
else if((targetChip == currentChip) and (targetCopy == currentCopy)) { else if(not selfCopy and (targetChip == currentChip) and (targetCopy == currentCopy)) {
performOp = true; performOp = true;
} }
if(result != 0) { if(result != 0) {