mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2025-02-17 05:48:33 +00:00
transactions render fix
Co-authored-by: Nikita Vostokov <1042932+wosk@users.noreply.github.com>
This commit is contained in:
parent
5c88e680a6
commit
3f29295380
1 changed files with 6 additions and 7 deletions
|
@ -125,8 +125,8 @@ void nfc_render_emv_transactions(const EmvApplication* apl, FuriString* str) {
|
||||||
furi_string_cat_printf(str, ".%02X", a[x]);
|
furi_string_cat_printf(str, ".%02X", a[x]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(a[x]) {
|
if(top && a[x]) {
|
||||||
if(top) {
|
// print without leading zeros if exist
|
||||||
furi_string_cat_printf(str, "%X", a[x]);
|
furi_string_cat_printf(str, "%X", a[x]);
|
||||||
top = false;
|
top = false;
|
||||||
} else {
|
} else {
|
||||||
|
@ -134,7 +134,6 @@ void nfc_render_emv_transactions(const EmvApplication* apl, FuriString* str) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if(apl->trans[i].currency) {
|
if(apl->trans[i].currency) {
|
||||||
furi_string_set_str(tmp, "UNK");
|
furi_string_set_str(tmp, "UNK");
|
||||||
|
|
Loading…
Add table
Reference in a new issue