modified mfu info to correctly identify ntag i2c tags
This commit is contained in:
1 parent
c6adda54ed
commit
2f6df627dc
4 files changed
+88
-24
No files matched your search
@@ -1902,8 +1902,6 @@ int loadFileJSONex(const char *preferredName, void *data, size_t maxdatalen, siz
|
||||
}
|
||||
|
||||
out:
|
||||
|
||||
|
||||
if (callback != NULL) {
|
||||
(*callback)(root);
|
||||
}
|
||||
@@ -2205,6 +2203,12 @@ mfu_df_e detect_mfu_dump_format(uint8_t **dump, bool verbose) {
|
||||
retval = MFU_DF_NEWBIN;
|
||||
}
|
||||
|
||||
// Memory layout is different for NTAG I2C 1K/2K plus
|
||||
// Sak 00, atqa 44 00
|
||||
if (0 == new->data[7] && 0x44 == new->data[8] && 0x00 == new->data[9] ) {
|
||||
retval = MFU_DF_NEWBIN;
|
||||
}
|
||||
|
||||
// detect old
|
||||
if (retval == MFU_DF_UNKNOWN) {
|
||||
old_mfu_dump_t *old = (old_mfu_dump_t *)*dump;
|
||||
|
||||
Reference in new issue
Block a user