Brendon Ky / Mbed 2 deprecated cs_335_speedometer

Dependencies:   mbed mbed-rtos

Revision:
12:cb9118a081fa
Parent:
11:dd860c2e12ec
Child:
13:a1a9f2282f15
--- a/main.cpp	Tue Dec 01 04:29:39 2020 +0000
+++ b/main.cpp	Tue Dec 01 04:47:11 2020 +0000
@@ -62,11 +62,10 @@
             
             prevTime = currTime;
             velocity = CIRCUMFRENCE_CM * 1000 / miliPerRotation;
-            
-            sendFloat(velocity);
         }
+        sendFloat(velocity);
 //printf("velocity %f\n", velocity);
         prevVoltReading = currVoltReading;
-        //wait(0.05);
+        wait(0.05);
     }
 }
\ No newline at end of file