NFC: Only show MFP GetVersion info when available

This commit is contained in:
Willy-JL
2025-03-23 03:10:42 +00:00
parent d2f4d0c216
commit 2f521d5e00
2 changed files with 17 additions and 1 deletions

View File

@@ -242,6 +242,8 @@ MfPlusError mf_plus_version_parse(MfPlusVersion* data, const BitBuffer* buf) {
if(can_parse) {
bit_buffer_write_bytes(buf, data, sizeof(MfPlusVersion));
} else {
memset(data, 0, sizeof(MfPlusVersion));
}
return can_parse ? MfPlusErrorNone : MfPlusErrorProtocol;