Julius Bernth / Mbed OS Cuvette_Centrifuge_Test_v1-2_ParallelMode

Dependencies:   QEI LIS3DH_spi

Revision:
2:da51e13f4ddf
Parent:
1:6e3f1776be82
Child:
3:4f215646a42b
--- a/main.cpp	Sun Aug 08 12:28:05 2021 +0000
+++ b/main.cpp	Sun Aug 08 12:29:22 2021 +0000
@@ -77,7 +77,7 @@
 Semaphore semStartTest(0);
 Semaphore semButton(0);
 
-Mutex mut1;
+//Mutex mut1;
 
 double LimitDouble(double input, double min, double max){
     double output;
@@ -132,10 +132,10 @@
             double timeRemaining = SPIN_T[5] - timeElapsed;
             int displayTime = int(timeRemaining)+1;
             //printf("Time remaining %d s\r\n", displayTime);
-            mut1.lock();
-            double printDemandSpeed = demandSpeed_RPM;
-            double printCurrentSpeed = currentSpeedRPM;
-            mut1.unlock();//this is the first change
+//            mut1.lock();
+//            double printDemandSpeed = demandSpeed_RPM;
+//            double printCurrentSpeed = currentSpeedRPM;
+//            mut1.unlock();//this is the first change
             printf("%f\t%f\r\n",demandSpeed_RPM, currentSpeedRPM);
         }
     }