modified mfu info to correctly identify ntag i2c tags

This commit is contained in:
iceman1001 2024-01-22 20:09:44 +01:00
parent c6adda54ed
commit 2f6df627dc
4 changed files with 88 additions and 24 deletions

View file

@ -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;