BertlPractise
Fork of Bertl by
Diff: ur_Bertl.cpp
- Revision:
- 6:df6830254e8b
- Parent:
- 5:6b667e2cb800
- Child:
- 7:e7f74f072564
diff -r 6b667e2cb800 -r df6830254e8b ur_Bertl.cpp --- a/ur_Bertl.cpp Fri Apr 10 07:12:07 2015 +0000 +++ b/ur_Bertl.cpp Fri Apr 10 09:31:54 2015 +0000 @@ -178,7 +178,7 @@ usensor.start(); wait_ms(10); dist=usensor.get_dist_cm(); - if(dist < 5) + if(dist < ULTRASONIC_DISTANCE) return false; else return true;