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: Distance_HC_SR04.cpp
- Revision:
- 3:c516e180843e
- Parent:
- 1:a2bf338e3698
- Child:
- 4:71f01fbc9246
--- a/Distance_HC_SR04.cpp Mon Dec 21 21:19:24 2015 +0000 +++ b/Distance_HC_SR04.cpp Mon Dec 21 21:54:40 2015 +0000 @@ -17,12 +17,6 @@ */ void Distance_HC_SR04::trigger(void) { if (_state == IDLE && _echo == 0) { - _timeout.detach(); - _echo.rise(NULL); - _echo.fall(NULL); - _timer.stop(); - _timer.reset(); - _trig = 1; wait_us(TRIG_PULSE_US); _trig = 0;