From 1d14c497b7f9c8aca6b7a7ca59c7db65b97d490f Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 18 Mar 2019 17:53:46 +0100 Subject: [PATCH] swapping order --- client/cmdlfem4x.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/cmdlfem4x.c b/client/cmdlfem4x.c index 915acfc1c..89d602125 100644 --- a/client/cmdlfem4x.c +++ b/client/cmdlfem4x.c @@ -808,21 +808,21 @@ int EM4x50Read(const char *Cmd, bool verbose) { low = sp->low; // get to first full low to prime loop and skip incomplete first pulse - while ((bits[i] < high) && (i < size)) + while ((i < size) && (bits[i] < high)) ++i; - while ((bits[i] > low) && (i < size)) + while ((i < size) && (bits[i] > low)) ++i; skip = i; // populate tmpbuff buffer with pulse lengths while (i < size) { // measure from low to low - while ((bits[i] > low) && (i < size)) + while ((i < size) && (bits[i] > low)) ++i; start = i; - while ((bits[i] < high) && (i < size)) + while ((i < size) && (bits[i] < high)) ++i; - while ((bits[i] > low) && (i < size)) + while ((i < size) && (bits[i] > low)) ++i; if (j >= (MAX_GRAPH_TRACE_LEN / 64)) { break;