diff --git a/CHANGELOG.md b/CHANGELOG.md index eb23959ae..26d4ec3d3 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 `lf pyramid sim` - wrong parameter handling (@iceman1001) - Fixed bootloader - Ignore jitters when pressing the button (@wh201906) ## [Steamboat Willie.4.17768][2024-01-03] diff --git a/client/src/cmdlfpyramid.c b/client/src/cmdlfpyramid.c index 5ed9ef576..2ec65657c 100644 --- a/client/src/cmdlfpyramid.c +++ b/client/src/cmdlfpyramid.c @@ -368,7 +368,7 @@ static int CmdPyramidSim(const char *Cmd) { "The facility-code is 8-bit and the card number is 16-bit. Larger values are truncated.\n" "Currently work only on 26bit", "lf pyramid sim --fc 123 --cn 1337\n" - "lf pyramid clone --raw 0001010101010101010440013223921c" + "lf pyramid sim --raw 0001010101010101010440013223921c" ); void *argtable[] = { @@ -385,7 +385,7 @@ static int CmdPyramidSim(const char *Cmd) { int raw_len = 0; // skip first block, 4*4 = 16 bytes left uint8_t raw[16] = {0}; - int res = CLIParamHexToBuf(arg_get_str(ctx, 5), raw, sizeof raw, &raw_len); + int res = CLIParamHexToBuf(arg_get_str(ctx, 3), raw, sizeof raw, &raw_len); if (res) { CLIParserFree(ctx); return PM3_EINVARG;