From 46e6ba5dede666ee263d0b9f5467e0c3b7bf43bb Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 1 Oct 2020 00:26:18 +0200 Subject: [PATCH] -p refs - unify param --- client/src/cmdhf14b.c | 4 ++-- client/src/cmdhffelica.c | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/client/src/cmdhf14b.c b/client/src/cmdhf14b.c index ac30276e3..ebb865d06 100644 --- a/client/src/cmdhf14b.c +++ b/client/src/cmdhf14b.c @@ -926,10 +926,10 @@ static int CmdHF14BReadSri(const char *Cmd) { static int CmdHF14BWriteSri(const char *Cmd) { /* * For SRIX4K blocks 00 - 7F - * hf 14b raw -c -p 09 $srix4kwblock $srix4kwdata + * hf 14b raw -c -k 09 $srix4kwblock $srix4kwdata * * For SR512 blocks 00 - 0F - * hf 14b raw -c -p 09 $sr512wblock $sr512wdata + * hf 14b raw -c -k 09 $sr512wblock $sr512wdata * * Special block FF = otp_lock_reg block. * Data len 4 bytes- diff --git a/client/src/cmdhffelica.c b/client/src/cmdhffelica.c index 9e48f1577..fde071419 100644 --- a/client/src/cmdhffelica.c +++ b/client/src/cmdhffelica.c @@ -84,11 +84,11 @@ static int usage_hf_felica_dumplite(void) { } static int usage_hf_felica_raw(void) { - PrintAndLogEx(NORMAL, "Usage: hf felica raw [-h] [-r] [-c] [-p] [-a] <0A 0B 0C ... hex>"); + PrintAndLogEx(NORMAL, "Usage: hf felica raw [-h] [-r] [-c] [-k] [-a] <0A 0B 0C ... hex>"); PrintAndLogEx(NORMAL, " -h this help"); PrintAndLogEx(NORMAL, " -r do not read response"); PrintAndLogEx(NORMAL, " -c calculate and append CRC"); - PrintAndLogEx(NORMAL, " -p leave the signal field ON after receive"); + PrintAndLogEx(NORMAL, " -k keep signal field ON after receive"); PrintAndLogEx(NORMAL, " -a active signal field ON without select"); PrintAndLogEx(NORMAL, " -s active signal field ON with select"); return PM3_SUCCESS; @@ -1687,7 +1687,7 @@ static int CmdHFFelicaDumpLite(const char *Cmd) { static int CmdHFFelicaCmdRaw(const char *Cmd) { bool reply = 1; bool crc = false; - bool power = false; + bool keep_field_on = false; bool active = false; bool active_select = false; uint16_t numbits = 0; @@ -1714,8 +1714,8 @@ static int CmdHFFelicaCmdRaw(const char *Cmd) { case 'c': crc = true; break; - case 'p': - power = true; + case 'k': + keep_field_on = true; break; case 'a': active = true; @@ -1771,7 +1771,7 @@ static int CmdHFFelicaCmdRaw(const char *Cmd) { flags |= FELICA_NO_SELECT; } - if (power) { + if (keep_field_on) { flags |= FELICA_NO_DISCONNECT; }