Skip to content

Commit

Permalink
[FL-3760] NFC Parsers cosmetic fixes (#3511)
Browse files Browse the repository at this point in the history
* NFC Parsers cosmetic fixes
* Clarify the unknown digit indication

Co-authored-by: あく <[email protected]>
  • Loading branch information
2 people authored and xMasterX committed Mar 20, 2024
1 parent a5bb1ea commit 4a67339
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion applications/main/nfc/plugins/supported_cards/myki.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ static bool myki_parse(const NfcDevice* device, FuriString* parsed_data) {
// Stored card number doesn't include check digit
card_number += myki_calculate_luhn(card_number);

furi_string_set(parsed_data, "\e#myki\n");
furi_string_set(parsed_data, "\e#myki\nNo.: ");

// Stylise card number according to the physical card
char card_string[20];
Expand Down
2 changes: 1 addition & 1 deletion applications/main/nfc/plugins/supported_cards/opal.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ static bool opal_parse(const NfcDevice* device, FuriString* parsed_data) {

furi_string_printf(
parsed_data,
"\e#Opal: $%s%ld.%02hu\n3085 22%02hhu %04hu %03hu%01hhu\n%s, %s\n",
"\e#Opal: $%s%ld.%02hu\nNo.: 3085 22%02hhu %04hu %03hu%01hhu\n%s, %s\n",
sign,
balance_dollars,
balance_cents,
Expand Down
2 changes: 1 addition & 1 deletion applications/main/nfc/plugins/supported_cards/plantain.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ static bool plantain_parse(const NfcDevice* device, FuriString* parsed_data) {
}

furi_string_printf(
parsed_data, "\e#Plantain\nN:%llu-\nBalance:%lu\n", card_number, balance);
parsed_data, "\e#Plantain\nNo.: %llu?\nBalance:%lu\n", card_number, balance);
parsed = true;
} while(false);

Expand Down
2 changes: 1 addition & 1 deletion applications/main/nfc/plugins/supported_cards/two_cities.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static bool two_cities_parse(const NfcDevice* device, FuriString* parsed_data) {

furi_string_printf(
parsed_data,
"\e#Troika+Plantain\nPN: %llu-\nPB: %lu rur.\nTN: %lu\nTB: %u rur.\n",
"\e#Troika+Plantain\nPN: %llu?\nPB: %lu rur.\nTN: %lu\nTB: %u rur.\n",
card_number,
balance,
troika_number,
Expand Down

0 comments on commit 4a67339

Please sign in to comment.