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: FtEncoder.cpp
- Revision:
- 2:1bf9f7b6bf29
- Parent:
- 1:9e595056c3da
diff -r 9e595056c3da -r 1bf9f7b6bf29 FtEncoder.cpp
--- a/FtEncoder.cpp Wed Mar 20 21:42:39 2013 +0000
+++ b/FtEncoder.cpp Mon Mar 25 21:08:56 2013 +0000
@@ -43,8 +43,8 @@
m_cursor &= c_nTmStmps-1;
m_timeStamps[m_cursor] = getCurrentTimeStamp();
// restart the timeout
- m_tmOut.detach();
- m_tmOut.attach_us(this, &FtEncoder::timeoutISR, m_standStillTimeout);
+ m_tmOut.remove();
+ m_tmOut.insert(m_timeStamps[m_cursor]+m_standStillTimeout);
++m_cnt;
m_callBack.call();
}