Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: PingDetect/PingDetect.cpp
- 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;