Skip to content

Commit

Permalink
Also parse empty NDEF TLVs
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Oct 25, 2024
1 parent 84e8f89 commit 66b626e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion applications/main/nfc/plugins/supported_cards/ndef.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,15 @@ static bool
furi_string_cat(ndef->output, "\n\n");
}

return pos == end && last_record;
if(record_num == 0) {
if(smart_poster) {
furi_string_cat(ndef->output, "\e*> SP: Empty\n\n");
} else {
furi_string_cat_printf(ndef->output, "\e*> M%d: Empty\n\n", message_num);
}
}

return pos == end && (last_record || record_num == 0);
}

// TLV structure:
Expand Down

0 comments on commit 66b626e

Please sign in to comment.