]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlfem4x.c
marcan's patch until he gets commit access. Remove C library's includes from the...
[proxmark3-svn] / 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