mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-21 05:04:46 -07:00
Check HWMajorVersion like NXP commands \o/
See: https://www.nxp.com/docs/en/application-note/AN10833.pdf
This commit is contained in:
@@ -54,7 +54,7 @@ bool mf_desfire_version_parse(MfDesfireVersion* data, const BitBuffer* buf) {
|
||||
bit_buffer_write_bytes(buf, data, sizeof(MfDesfireVersion));
|
||||
}
|
||||
|
||||
return can_parse;
|
||||
return can_parse && (data->hw_type & 0x0F) == 0x01;
|
||||
}
|
||||
|
||||
bool mf_desfire_free_memory_parse(MfDesfireFreeMemory* data, const BitBuffer* buf) {
|
||||
|
||||
@@ -27,7 +27,7 @@ MfPlusError mf_plus_get_type_from_version(
|
||||
|
||||
MfPlusError error = MfPlusErrorProtocol;
|
||||
|
||||
if(mf_plus_data->version.hw_type == 0x02 || mf_plus_data->version.hw_type == 0x82) {
|
||||
if((mf_plus_data->version.hw_type & 0x0F) == 0x02) {
|
||||
error = MfPlusErrorNone;
|
||||
// Mifare Plus EV1/EV2
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ bool ntag4xx_version_parse(Ntag4xxVersion* data, const BitBuffer* buf) {
|
||||
}
|
||||
}
|
||||
|
||||
return can_parse && data->hw_type == 0x04;
|
||||
return can_parse && (data->hw_type & 0x0F) == 0x04;
|
||||
}
|
||||
|
||||
bool ntag4xx_version_load(Ntag4xxVersion* data, FlipperFormat* ff) {
|
||||
|
||||
Reference in New Issue
Block a user