made keytype instead of fixed keyB. would help in situations keyB is readable...

This commit is contained in:
iceman1001 2023-12-31 09:35:42 +01:00
commit f840dc810b
6 changed files with 13 additions and 12 deletions

View file

@ -1736,10 +1736,11 @@ static void PacketReceived(PacketCommandNG *packet) {
struct p {
uint8_t is_mfc;
uint8_t keytype;
uint8_t key[6];
} PACKED;
struct p *payload = (struct p *) packet->data.asBytes;
MifareCIdent(payload->is_mfc, payload->key);
MifareCIdent(payload->is_mfc, payload->keytype, payload->key);
break;
}
// Gen 3 magic cards