fixed wrong parameter handling and helptext

This commit is contained in:
iceman1001 2024-01-04 13:09:31 +01:00
parent 570f0f63e3
commit ef166a1030
2 changed files with 3 additions and 2 deletions

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 `lf pyramid sim` - wrong parameter handling (@iceman1001)
- Fixed bootloader - Ignore jitters when pressing the button (@wh201906)
## [Steamboat Willie.4.17768][2024-01-03]

View file

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