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 d1afdfe578 - Show all commits

View File

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