X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/7fe9b0b742d7dae9c5af1d292d11840b5c3cbfae..5a956258d3d8416f1cd2259319eae784d008a46b:/client/cmdlfem4x.c diff --git a/client/cmdlfem4x.c b/client/cmdlfem4x.c index 52d407ab..9b40d7c0 100644 --- a/client/cmdlfem4x.c +++ b/client/cmdlfem4x.c @@ -235,16 +235,11 @@ int CmdEM410xSim(const char *Cmd) * looped until an EM410x tag is detected */ int CmdEM410xWatch(const char *Cmd) { - char *zero = ""; - char *twok = "2000"; - - int stop = 0; do { - CmdLFRead(zero); - CmdLFSamples(twok); - stop = CmdEM410xRead(zero); - } while (!stop); + CmdLFRead(""); + CmdSamples("2000"); + } while ( ! CmdEM410xRead("")); return 0; }