Skip to content

Commit

Permalink
Merge pull request #699 from DarkFlippers/leptoptilos
Browse files Browse the repository at this point in the history
metromoney parser balance fix
  • Loading branch information
xMasterX authored Jan 30, 2024
2 parents d23bc9f + b0371b3 commit 100a46d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/main/nfc/plugins/supported_cards/metromoney.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 100a46d

Please sign in to comment.