SRF02 Ultrasonic Ranger

Revision:
1:f914b5b8c84e
Parent:
0:adf5a063372d
diff -r adf5a063372d -r f914b5b8c84e SRF02.cpp
--- a/SRF02.cpp	Thu Jul 31 13:52:49 2014 +0000
+++ b/SRF02.cpp	Tue Jun 22 13:21:57 2021 +0000
@@ -9,7 +9,7 @@
 {
     char w[2]= {COMMAND_REGISTER,command};
     if (i2c_bus.write(deviceAddess,w ,2)>=0)
-        wait(DefaultWait);
+        HAL_Delay(0.07);
     else return -1;
     char r[1] = {mode};
     if (i2c_bus.write(deviceAddess,r ,1)>=0)