From 90b49926ea5bc05e3967090a60a06547379c6160 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Wed, 31 Jan 2024 18:32:13 +0300 Subject: [PATCH] fix render with no date/amount --- .../main/nfc/helpers/protocol_support/emv/emv_render.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/applications/main/nfc/helpers/protocol_support/emv/emv_render.c b/applications/main/nfc/helpers/protocol_support/emv/emv_render.c index b897db787..a01a0ba68 100644 --- a/applications/main/nfc/helpers/protocol_support/emv/emv_render.c +++ b/applications/main/nfc/helpers/protocol_support/emv/emv_render.c @@ -117,7 +117,8 @@ void nfc_render_emv_transactions(const EmvApplication* apl, FuriString* str) { furi_string_cat_printf(str, "Transactions:\n"); for(int i = 0; i < len; i++) { - //if(!apl->trans[i].amount) continue; - NO Skip here pls + // If no date and amount - skip + if((!apl->trans[i].date) && (!apl->trans[i].amount)) continue; // transaction counter furi_string_cat_printf(str, "\e#%d: ", apl->trans[i].atc); @@ -167,10 +168,13 @@ void nfc_render_emv_transactions(const EmvApplication* apl, FuriString* str) { if(apl->trans[i].time) furi_string_cat_printf( str, - "%02lx:%02lx:%02lx\n", + "%02lx:%02lx:%02lx", apl->trans[i].time & 0xff, (apl->trans[i].time >> 8) & 0xff, apl->trans[i].time >> 16); + + // Line break + furi_string_cat_printf(str, "\n"); } furi_string_free(tmp);