From b0371b3465f2ece7259fad08e6a3daaa5a4b0083 Mon Sep 17 00:00:00 2001 From: Methodius Date: Tue, 30 Jan 2024 16:55:22 +0900 Subject: [PATCH] metromoney parser balance fix --- applications/main/nfc/plugins/supported_cards/metromoney.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/main/nfc/plugins/supported_cards/metromoney.c b/applications/main/nfc/plugins/supported_cards/metromoney.c index 063f8ffccf..2b33da153b 100644 --- a/applications/main/nfc/plugins/supported_cards/metromoney.c +++ b/applications/main/nfc/plugins/supported_cards/metromoney.c @@ -147,7 +147,7 @@ static bool metromoney_parse(const NfcDevice* device, FuriString* parsed_data) { const uint8_t* block_start_ptr = &data->block[start_block_num + ticket_block_number].data[0]; - uint32_t balance = nfc_util_bytes2num_little_endian(block_start_ptr, 4); + uint32_t balance = nfc_util_bytes2num_little_endian(block_start_ptr, 4) - 100; uint32_t balance_lari = balance / 100; uint8_t balance_tetri = balance % 100;