From ac6afe9c0488798cfb78ce7e93fef01582ddf569 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 28 Dec 2019 21:40:52 +0100 Subject: [PATCH] Chg: 'lf t55xx dump - updated json format --- client/fileutils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/fileutils.c b/client/fileutils.c index c8cdb3462..a11dbcd2a 100644 --- a/client/fileutils.c +++ b/client/fileutils.c @@ -338,9 +338,9 @@ int saveFileJSON(const char *preferredName, JSONFileType ftype, uint8_t *data, s } case jsfT55x7: { JsonSaveStr(root, "FileType", "t55x7"); - uint8_t id[4] = {0}; - memcpy(id, data, 4); - JsonSaveBufAsHexCompact(root, "$.Card.ID", id, sizeof(id)); + uint8_t conf[4] = {0}; + memcpy(conf, data, 4); + JsonSaveBufAsHexCompact(root, "$.Card.ConfigBlock", conf, sizeof(conf)); for (size_t i = 0; i < (datalen / 4); i++) { char path[PATH_MAX_LENGTH] = {0};