From 2c68edfad469460144f60fd61c9207f2920fdec7 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 10 Apr 2019 13:31:09 +0200 Subject: [PATCH] fix indala clone/demod helptext --- client/cmdlfindala.c | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/client/cmdlfindala.c b/client/cmdlfindala.c index 394b5ed72..e40d89830 100644 --- a/client/cmdlfindala.c +++ b/client/cmdlfindala.c @@ -45,22 +45,6 @@ static int usage_lf_indala_sim(void) { return 0; } -static int usage_lf_indala_clone(void) { - PrintAndLogEx(NORMAL, ""); - PrintAndLogEx(NORMAL, ""); - PrintAndLogEx(NORMAL, "Usage: lf indala clone [h] [Q5]"); - PrintAndLogEx(NORMAL, "Options:"); - PrintAndLogEx(NORMAL, " h : This help"); - PrintAndLogEx(NORMAL, " l : long uid 64/224"); - PrintAndLogEx(NORMAL, " : UID"); - PrintAndLogEx(NORMAL, " Q5 : optional - clone to Q5 (T5555) instead of T55x7 chip"); - PrintAndLogEx(NORMAL, ""); - PrintAndLogEx(NORMAL, "Examples:"); - PrintAndLogEx(NORMAL, " lf indala clone 112233 -- 64"); - PrintAndLogEx(NORMAL, " lf indala clone l 112233 -- long 224"); - return 0; -} - // redesigned by marshmellow adjusted from existing decode functions // indala id decoding int detectIndala(uint8_t *dest, size_t *size, uint8_t *invert) { @@ -181,6 +165,10 @@ int CmdIndalaRead(const char *Cmd) { // by marshmellow // optional arguments - same as PSKDemod (clock & invert & maxerr) int CmdIndalaDemod(const char *Cmd) { + + char cmdp = tolower(param_getchar(Cmd, 0)); + if (strlen(Cmd) == 0 || cmdp == 'h') return usage_lf_indala_demod(); + int ans; if (strlen(Cmd) > 0) ans = PSKDemod(Cmd, true);