Tummas Tomasson / Mbed 2 deprecated PingDetector_mbedadc

Dependencies:   mbed

Revision:
1:227db871d328
Parent:
0:efb27fbc92c0
--- a/PingDetect/PingDetect.cpp	Mon Jul 30 09:57:42 2012 +0000
+++ b/PingDetect/PingDetect.cpp	Tue Aug 21 14:23:03 2012 +0000
@@ -1,3 +1,7 @@
+/*
+    Program to control the system. 
+*/
+
 #include "PingDetect.h"
 
 #define ClearBuffer LPC_UART0->FCR | 0x06
@@ -24,12 +28,7 @@
         DataBack[i] = adc.read(p20);
     }
 
-//    pc.printf("%i\n\r", fft.DetectSignal(DataFront));
-//    return notFound;
-    l0=1;
-    // return found;
     if (fft.DetectSignal(DataFront) == found) {
-        l0=1;
         return found;
     } else {
         return notFound;