Merge pull request #2476 from CiRIP/electra_decode

Actually fix ELECTRA parsing
This commit is contained in:
Iceman 2024-08-27 08:02:29 +02:00 committed by GitHub
commit 94063607ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -231,7 +231,7 @@ void printEM410x(uint32_t hi, uint64_t id, bool verbose, int type) {
uint32_t sebury3 = id & 0x7FFFFF;
PrintAndLogEx(SUCCESS, "Pattern Sebury : %d %d %d [0x%X 0x%X 0x%X]", sebury1, sebury2, sebury3, sebury1, sebury2, sebury3);
PrintAndLogEx(SUCCESS, "VD / ID : %03" PRIu64 " / %010" PRIu64, (id >> 32LL) & 0xFFFF, (id & 0xFFFFFFFF));
PrintAndLogEx(SUCCESS, "Pattern ELECTRA : " PRIu64 " " PRIu64, (id >> 24) & 0xFFFF, id & 0xFFFFFF);
PrintAndLogEx(SUCCESS, "Pattern ELECTRA : %" PRIu64 " %" PRIu64, (id >> 24) & 0xFFFF, id & 0xFFFFFF);
PrintAndLogEx(INFO, "------------------------------------------------");
}