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.
Dependencies: mbed
Diff: MainWithFreq.cpp
- Revision:
- 3:c9341431a333
- Parent:
- 2:7900c18cebd5
--- a/MainWithFreq.cpp Wed Jun 25 15:22:02 2014 +0000
+++ b/MainWithFreq.cpp Wed Jun 25 15:30:12 2014 +0000
@@ -295,10 +295,10 @@
continue;
}
curt = t2.read_us();
- if (curt < t_period/8
- || (t_period/4 < curt && curt < (t_period/8)*3 )
- || (t_period/2 < curt && curt < (t_period/8)*5 )
- || ((t_period/4)*3 < curt && curt < (t_period/8)*7 )
+ if (curt < t_period * 0.135
+ || (t_period/4 < curt && curt < (t_period*0.135)*3 )
+ || (t_period/2 < curt && curt < (t_period/0.135)*5 )
+ || ((t_period/4)*3 < curt && curt < (t_period/0.135)*7 )
) {
if (last != 0) {
//cake empty