mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 04:53:08 +00:00
Support 19 bytes PAN (eg.MIR virt)
This commit is contained in:
parent
5e384ccc43
commit
c014491f55
1 changed files with 4 additions and 0 deletions
|
@ -896,6 +896,10 @@ static bool emv_parse(const NfcDevice* device, FuriString* parsed_data) {
|
||||||
furi_string_cat_printf(parsed_data, "%02X", app.pan[i]);
|
furi_string_cat_printf(parsed_data, "%02X", app.pan[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Cut padding 'F' from card number
|
||||||
|
size_t end = furi_string_search_rchar(parsed_data, 'F');
|
||||||
|
if(end) furi_string_left(parsed_data, end);
|
||||||
|
|
||||||
furi_string_cat_printf(parsed_data, "\nExp: %02X/%02X", app.exp_month, app.exp_year);
|
furi_string_cat_printf(parsed_data, "\nExp: %02X/%02X", app.exp_month, app.exp_year);
|
||||||
|
|
||||||
furi_string_cat_printf(parsed_data, "\nCountry: %s", get_country_name(app.country_code));
|
furi_string_cat_printf(parsed_data, "\nCountry: %s", get_country_name(app.country_code));
|
||||||
|
|
Loading…
Reference in a new issue