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.
Dependents: TJPS UltraTest NavigationTest NavigationTest_ ... more
Fork of HCSR04 by
Revision 1:68ad9acbec81, committed 2013-12-02
- Comitter:
- srsmitherman
- Date:
- Mon Dec 02 23:14:26 2013 +0000
- Parent:
- 0:5461d44a187c
- Child:
- 2:3ebde19131af
- Commit message:
- Added a detach for the unused Ticker after trigger is set low.
Changed in this revision
| HCSR04.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/HCSR04.cpp Sun Nov 24 21:45:46 2013 +0000
+++ b/HCSR04.cpp Mon Dec 02 23:14:26 2013 +0000
@@ -75,6 +75,8 @@
void HCSR04::triggerTicker_cb(void)
{
trigger = SIGNAL_LOW;
+ triggerTicker.detach();
+
}
