20000 to 2000
Dependents: VAM_MANUAL_2_DO_NOT_EDIT VAM_CYCLE_2_DO_NOT_EDIT mbed_blinky
Revision 8:4b8a22181c7a, committed 2019-01-21
- Comitter:
- vamgehealthcare11
- Date:
- Mon Jan 21 19:52:02 2019 +0000
- Parent:
- 7:71da0dbf4400
- Commit message:
- updated 20000 to 2000
Changed in this revision
hcsr04.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 71da0dbf4400 -r 4b8a22181c7a hcsr04.cpp --- a/hcsr04.cpp Sat Mar 30 18:55:03 2013 +0000 +++ b/hcsr04.cpp Mon Jan 21 19:52:02 2019 +0000 @@ -50,7 +50,7 @@ { pulsetime.stop(); pulsedur = pulsetime.read_us(); - distance= (pulsedur*343)/20000; + distance= (pulsedur*343)/2000; pulsetime.reset(); }