Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Jun 11, 2024
1 parent b1519ef commit d4d5b1b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions applications/main/nfc/plugins/supported_cards/microel.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ static bool microel_parse(const NfcDevice* device, FuriString* parsed_data) {
//Get credit in block number 8
const uint8_t* temp_ptr = data->block[4].data;
uint16_t balance = (temp_ptr[6] << 8) | (temp_ptr[5]);
uint16_t previus_balance = (data->block[5].data[6] << 8) | (data->block[5].data[5]);
uint16_t previous_balance = (data->block[5].data[6] << 8) | (data->block[5].data[5]);
furi_string_cat_printf(parsed_data, "\e#Microel Card\n");
furi_string_cat_printf(parsed_data, "UID:");
for(size_t i = 0; i < UID_LENGTH; i++) {
Expand All @@ -199,9 +199,9 @@ static bool microel_parse(const NfcDevice* device, FuriString* parsed_data) {
parsed_data, "\nCurrent Credit: %d.%02d E \n", balance / 100, balance % 100);
furi_string_cat_printf(
parsed_data,
"Previus Credit: %d.%02d E \n",
previus_balance / 100,
previus_balance % 100);
"Previous Credit: %d.%02d E \n",
previous_balance / 100,
previous_balance % 100);

parsed = true;
} while(false);
Expand Down
14 changes: 7 additions & 7 deletions applications/main/nfc/plugins/supported_cards/mizip.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,15 @@ static bool mizip_parse(const NfcDevice* device, FuriString* parsed_data) {

//Get credit
uint8_t credit_pointer = 0x08;
uint8_t previus_credit_pointer = 0x09;
uint8_t previous_credit_pointer = 0x09;
if(data->block[10].data[0] == 0x55) {
credit_pointer = 0x09;
previus_credit_pointer = 0x08;
previous_credit_pointer = 0x08;
}
uint16_t balance = (data->block[credit_pointer].data[2] << 8) |
(data->block[credit_pointer].data[1]);
uint16_t previus_balance = (data->block[previus_credit_pointer].data[2] << 8) |
(data->block[previus_credit_pointer].data[1]);
uint16_t previous_balance = (data->block[previous_credit_pointer].data[2] << 8) |
(data->block[previous_credit_pointer].data[1]);

//parse data
furi_string_cat_printf(parsed_data, "\e#MiZIP Card\n");
Expand All @@ -226,9 +226,9 @@ static bool mizip_parse(const NfcDevice* device, FuriString* parsed_data) {
parsed_data, "\nCurrent Credit: %d.%02d E \n", balance / 100, balance % 100);
furi_string_cat_printf(
parsed_data,
"Previus Credit: %d.%02d E \n",
previus_balance / 100,
previus_balance % 100);
"Previous Credit: %d.%02d E \n",
previous_balance / 100,
previous_balance % 100);

parsed = true;
} while(false);
Expand Down

0 comments on commit d4d5b1b

Please sign in to comment.