Skip to content

Commit

Permalink
Merge pull request #138 from shinhub/fix_mfc_atqa_init
Browse files Browse the repository at this point in the history
Fix ATQA 4B/7B init inversion for MFC (#137)
  • Loading branch information
securechicken authored Aug 24, 2019
2 parents 77c36be + 1d6f455 commit 90abdd1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Firmware/ChameleonMini/Application/MifareClassic.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,9 @@ void MifareClassicAppInit1K(void)
State = STATE_IDLE;
is7BitsUID = (ActiveConfiguration.UidSize == MEM_UID7_SIZE);
if (is7BitsUID) {
CardATQAValue = MFCLASSIC_1K_ATQA_VALUE;
} else {
CardATQAValue = MFCLASSIC_1K_7B_ATQA_VALUE;
} else {
CardATQAValue = MFCLASSIC_1K_ATQA_VALUE;
}
CardSAKValue = MFCLASSIC_1K_SAK_CL1_VALUE;
}
Expand All @@ -422,9 +422,9 @@ void MifareClassicAppInit4K(void)
State = STATE_IDLE;
is7BitsUID = (ActiveConfiguration.UidSize == MEM_UID7_SIZE);
if (is7BitsUID) {
CardATQAValue = MFCLASSIC_4K_ATQA_VALUE;
} else {
CardATQAValue = MFCLASSIC_4K_7B_ATQA_VALUE;
} else {
CardATQAValue = MFCLASSIC_4K_ATQA_VALUE;
}
CardSAKValue = MFCLASSIC_4K_SAK_CL1_VALUE;
}
Expand Down

0 comments on commit 90abdd1

Please sign in to comment.