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