Merge pull request #3395 from IdanHo/fix/legic-migrate-dcf-hex

legic: parse DCF argument as hex in migrate
This commit is contained in:
Iceman authored and GitHub committed 2026-06-25 03:58:53 +07:00
commit a62134b3fc
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -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)
+1 -1
View File
@@ -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);