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: theBadTouch.cpp
- Revision:
- 5:e1e14d61dd00
- Parent:
- 4:7e7c93d90d99
--- a/theBadTouch.cpp Thu Feb 03 15:43:06 2011 +0000
+++ b/theBadTouch.cpp Thu Feb 03 19:58:19 2011 +0000
@@ -46,7 +46,7 @@
- if(badPlace() >= 1.0)
+ if(badPlace() >= 0.8)
{
/*
if(_touchCounter < 0x03)
@@ -69,13 +69,16 @@
t.reset();
for(int i = 0; i < 20; i++)
{
- while(badPlace() >= 1.0)
+ //while(badPlace() >= 0.8)
+ //{
+ if(badPlace() >= 0.8)
{
if(t.read_ms() > 200)
{
return 0x02;
}
}
+ //}
}
}
}
@@ -101,5 +104,7 @@
float value = *_sense;
delete _sense;
+ printf("Value: %f\n", value);
+ wait(.5);
return value;
}
\ No newline at end of file