From 92d0cdb909df20f9be21c9642d10852b1acb89ec Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Wed, 24 Jun 2026 21:41:49 +0300 Subject: [PATCH 1/2] legic: parse DCF argument as hex in migrate --- client/src/cmdhflegic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdhflegic.c b/client/src/cmdhflegic.c index 74c87075d..d0b5aa8bb 100644 --- a/client/src/cmdhflegic.c +++ b/client/src/cmdhflegic.c @@ -211,7 +211,7 @@ static int CmdLegicMigrate(const char *Cmd) { int dcf_len = 0; uint8_t dcf[2] = {0}; if (arg_get_str(ctx, 2) != NULL) { - CLIParamStrToBuf(arg_get_str(ctx, 2), dcf, sizeof(dcf), &dcf_len); + CLIParamHexToBuf(arg_get_str(ctx, 2), dcf, sizeof(dcf), &dcf_len); if (dcf_len != 2) { PrintAndLogEx(WARNING, "DCF must be exactly two bytes"); CLIParserFree(ctx); From 80a35d9f0542b226b49657050eab59c2a7fb7e24 Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Wed, 24 Jun 2026 21:47:27 +0300 Subject: [PATCH 2/2] changelog: update for legic migrate hex parsing fix --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d05fcf658..f1ce47ea6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file. This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log... ## [unreleased][unreleased] +- Fixed `hf legic migrate` failing to parse the optional DCF argument as hex (@IdanHo) - Add support for parsing Finnish Helsinki Regional Transport (HRT) travel cards (@sanduuz) - Added standalone mode `HF_DOEGOX_COMMIT`: DESFire suspended commit without relay (@doegox) - Added support for Innovatron protocol detection to `hf 14b info` (@kormax)