X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/87c10b2a0f49b1542258b5a4ed6f83a125c5da8f..f24edfec54295aac701b8240e39d77646ddd9bef:/client/cmdlfawid.c diff --git a/client/cmdlfawid.c b/client/cmdlfawid.c index 8b04a3d6..9883437a 100644 --- a/client/cmdlfawid.c +++ b/client/cmdlfawid.c @@ -116,10 +116,9 @@ static bool sendTry(uint8_t fmtlen, uint32_t fc, uint32_t cn, uint32_t delay, ui } int CmdAWIDDemodFSK(const char *Cmd) { - int findone = 0; - if (Cmd[0] == 'h' || Cmd[0] == 'H') return usage_lf_awid_fskdemod(); - if (Cmd[0] == '1') findone = 1; + if (Cmd[0] == 'h' || Cmd[0] == 'H') return usage_lf_awid_fskdemod(); + uint8_t findone = (Cmd[0] == '1') ? 1 : 0; UsbCommand c = {CMD_AWID_DEMOD_FSK, {findone, 0, 0}}; clearCommandBuffer(); SendCommand(&c); @@ -282,9 +281,9 @@ int CmdAWIDClone(const char *Cmd) { if ( !fc || !cn) return usage_lf_awid_clone(); - if (param_getchar(Cmd, 4) == 'Q' || param_getchar(Cmd, 4) == 'q') + if (param_getchar(Cmd, 3) == 'Q' || param_getchar(Cmd, 3) == 'q') //t5555 (Q5) BITRATE = (RF-2)/2 (iceman) - blocks[0] = T5555_MODULATION_FSK2 | T5555_INVERT_OUTPUT | 50<>1) << T5555_BITRATE_SHIFT | 3<