From df1d6503c0e6426d20c5db0e9774ad7f94251875 Mon Sep 17 00:00:00 2001 From: Methodius Date: Wed, 22 Nov 2023 16:15:53 +0900 Subject: [PATCH] Umarsh header check rework --- applications/main/nfc/plugins/supported_cards/umarsh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/main/nfc/plugins/supported_cards/umarsh.c b/applications/main/nfc/plugins/supported_cards/umarsh.c index 5e29f5c03..c2a35ab33 100644 --- a/applications/main/nfc/plugins/supported_cards/umarsh.c +++ b/applications/main/nfc/plugins/supported_cards/umarsh.c @@ -59,7 +59,7 @@ static bool umarsh_parse(const NfcDevice* device, FuriString* parsed_data) { uint32_t header = block_start_ptr[0] << 24 | block_start_ptr[1] << 16 | block_start_ptr[2] << 8 | block_start_ptr[3]; - if(header != 0xFFFFFF7F && header != 0xFEFFFF7F && header != 0xE3FFFF7F) break; + if((header & 0xFFFFFF) != 0xFFFF7F) break; // Data parsing from block 1 block_start_ptr = &data->block[ticket_sector_start_block_number + 1].data[0];