X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/a7247d858b195bd21eeba6d65a882323ad71d030..dcc10e5e310a9e652e698593b7ba34bacbdd2b80:/winsrc/command.cpp diff --git a/winsrc/command.cpp b/winsrc/command.cpp index b2258640..5892a8e5 100644 --- a/winsrc/command.cpp +++ b/winsrc/command.cpp @@ -214,6 +214,13 @@ static void CmdLegicRfSim(char *str) SendCommand(&c, FALSE); } +static void CmdLegicRfRead(char *str) +{ + UsbCommand c; + c.cmd = CMD_READER_LEGIC_RF; + SendCommand(&c, FALSE); +} + static void CmdFPGAOff(char *str) // ## FPGA Control { UsbCommand c; @@ -2841,13 +2848,13 @@ static void CmdSetMux(char *str) { UsbCommand c; c.cmd = CMD_SET_ADC_MUX; - if(strncasecmp(str, "lopkd", 5) == 0) { + if(strcmp(str, "lopkd") == 0) { c.ext1 = 0; - } else if(strncasecmp(str, "loraw", 5) == 0) { + } else if(strcmp(str, "loraw") == 0) { c.ext1 = 1; - } else if(strncasecmp(str, "hipkd", 5) == 0) { + } else if(strcmp(str, "hipkd") == 0) { c.ext1 = 2; - } else if(strncasecmp(str, "hiraw", 5) == 0) { + } else if(strcmp(str, "hiraw") == 0) { c.ext1 = 3; } SendCommand(&c, FALSE); @@ -2908,6 +2915,7 @@ static struct { {"lcd", CmdLcd, 0, " -- Send command/data to LCD"}, {"lcdreset", CmdLcdReset, 0, "Hardware reset LCD"}, {"legicrfsim", CmdLegicRfSim, 0, "Start the LEGIC RF tag simulator"}, + {"legicrfread", CmdLegicRfRead, 0, "Start the LEGIC RF reader"}, {"load", CmdLoad, 1, " -- Load trace (to graph window"}, {"locomread", CmdLoCommandRead, 0, " <'0' period> <'1' period> ['h'] -- Modulate LF reader field to send command before read (all periods in microseconds) (option 'h' for 134)"}, {"loread", CmdLoread, 0, "['h'] -- Read 125/134 kHz LF ID-only tag (option 'h' for 134)"},