mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-10-22 21:53:50 +00:00
reverse crc check
This commit is contained in:
1 parent
5d5db7286d
commit
d12606cb26
1 file changed
+1
-1
@@ -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]);
|
||||
|
||||
Reference in new issue
Block a user