]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlf.c
FIX: "abort trap 6" error when runing the tnp3sim.lua script was because the CMD_MIF...
[proxmark3-svn] / client / cmdlf.c
index c67f34a8491a905397d23c6d70b17853d0b010fa..36c076280f7600d7854c591e2f9b206d1b486a71 100644 (file)
@@ -36,26 +36,25 @@ static int CmdHelp(const char *Cmd);
 
 int usage_lf_cmdread()
 {
 
 int usage_lf_cmdread()
 {
-       PrintAndLog("Usage: lf cmdread  <delay off>  <zero> <one> <cmdbytes> [H] ");
+       PrintAndLog("Usage: lf cmdread  <delay off> <zero> <one> <cmdbytes> [H|L]");
        PrintAndLog("Options:        ");
        PrintAndLog("       h             This help");
        PrintAndLog("Options:        ");
        PrintAndLog("       h             This help");
-       PrintAndLog("       L             Low frequency (125 KHz)");
-       PrintAndLog("       H             High frequency (134 KHz)");
-       PrintAndLog("       H             delay OFF");
-       PrintAndLog("       H             time period ZERO");
-       PrintAndLog("       H             time period ONE");
+       PrintAndLog("      <delay off>    delay offset");
+       PrintAndLog("      <zero>         time period ZERO");
+       PrintAndLog("      <one>          time period ONE");
+       PrintAndLog("      [H|L]          Frequency Low (125 KHz) / High (134 KHz)");
        PrintAndLog("Examples:");
        PrintAndLog("      lf cmdread 80 100 200 11000");
        PrintAndLog("      lf cmdread 80 100 100 11000 H");
        return 0;
 }
 
        PrintAndLog("Examples:");
        PrintAndLog("      lf cmdread 80 100 200 11000");
        PrintAndLog("      lf cmdread 80 100 100 11000 H");
        return 0;
 }
 
-/* send a command before reading */
+/* send a LF command before reading */
 int CmdLFCommandRead(const char *Cmd)
 {
        static char dummy[3] = {0x20,0x00,0x00};
        bool errors = FALSE;
 int CmdLFCommandRead(const char *Cmd)
 {
        static char dummy[3] = {0x20,0x00,0x00};
        bool errors = FALSE;
-       uint8_t divisor = 0; //125khz
+       uint8_t divisor = 95; //125khz
        uint8_t cmdp =0;
        while(param_getchar(Cmd, cmdp) != 0x00)
        {
        uint8_t cmdp =0;
        while(param_getchar(Cmd, cmdp) != 0x00)
        {
Impressum, Datenschutz