minor fix

This commit is contained in:
Robin Müller 2021-08-19 17:27:13 +02:00
parent 42d225bb6c
commit 24ecfe84ae
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

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