From 71a93f3e09baa32353e570a3fa6d7d7c82c5ccd2 Mon Sep 17 00:00:00 2001 From: Arjo Chakravarty Date: Tue, 13 Aug 2013 20:00:08 +0800 Subject: [PATCH] fixed perpetual loop --- signal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signal.cpp b/signal.cpp index 7a5b8ce..6e4df0c 100755 --- a/signal.cpp +++ b/signal.cpp @@ -110,7 +110,7 @@ void signal::zeroCrossingSearch(){ prev = arr[i]-avgPower; if(prev<0){ lower = i; - i = 33; //Break out of loop + i = 0; //Break out of loop } i--; }