mbed device driver for HC-SR04 ultrasonic range finder
Dependents: TJPS UltraTest NavigationTest NavigationTest_ ... more
Fork of HCSR04 by
Diff: HCSR04.cpp
- Revision:
- 1:68ad9acbec81
- Parent:
- 0:5461d44a187c
- Child:
- 2:3ebde19131af
--- 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(); + }