From ab2fd3d68b5670b5c7550f2e98f9c8f8909a6a6e Mon Sep 17 00:00:00 2001 From: "adam@algroup.co.uk" Date: Sat, 6 Feb 2010 18:05:05 +0000 Subject: [PATCH] streamline CmdEM410xWatch --- client/cmdlfem4x.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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; } -- 2.39.5