]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
streamline CmdEM410xWatch
authoradam@algroup.co.uk <adam@algroup.co.uk@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Sat, 6 Feb 2010 18:05:05 +0000 (18:05 +0000)
committeradam@algroup.co.uk <adam@algroup.co.uk@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Sat, 6 Feb 2010 18:05:05 +0000 (18:05 +0000)
client/cmdlfem4x.c

index 52d407ab49271ae85221019e801e5fb4c596361b..9b40d7c05f569b4b254bc94121d8526c42dd75a0 100644 (file)
@@ -235,16 +235,11 @@ int CmdEM410xSim(const char *Cmd)
  * looped until an EM410x tag is detected */
 int CmdEM410xWatch(const char *Cmd)
 {
  * looped until an EM410x tag is detected */
 int CmdEM410xWatch(const char *Cmd)
 {
-  char *zero = "";
-  char *twok = "2000";
-
-  int stop = 0;
   do
   {
   do
   {
-    CmdLFRead(zero);
-    CmdLFSamples(twok);
-    stop = CmdEM410xRead(zero);
-  } while (!stop);
+    CmdLFRead("");
+    CmdSamples("2000");
+  } while ( ! CmdEM410xRead(""));
   return 0;
 }
 
   return 0;
 }
 
Impressum, Datenschutz