stephen smitherman / HCSR04

Dependents:   TJPS UltraTest NavigationTest NavigationTest_ ... more

Fork of HCSR04 by Robert Abad

Files at this revision

API Documentation at this revision

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();
+    
 }