mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
reverse crc check
This commit is contained in:
parent
5d5db7286d
commit
d12606cb26
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ static const char *GetAIDDescription(uint16_t AID) {
|
|||
}
|
||||
|
||||
static int madCRCCheck(uint8_t *sector, bool verbose, int MADver) {
|
||||
if (MADver == 2) {
|
||||
if (MADver == 1) {
|
||||
uint8_t crc = CRC8Mad(§or[16 + 1], 15 + 16);
|
||||
if (crc != sector[16]) {
|
||||
PrintAndLogEx(WARNING, _RED_("Wrong MAD %d CRC") " calculated: 0x%02x != 0x%02x", MADver, crc, sector[16]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue