Julius Bernth / Mbed OS Cuvette_Centrifuge_Test_v1-2_ParallelMode

Dependencies:   QEI LIS3DH_spi

Revision:
14:81d390496d4e
Parent:
13:32e1ae4221f7
Child:
15:f86310960aab
diff -r 32e1ae4221f7 -r 81d390496d4e main.cpp
--- a/main.cpp	Thu Aug 12 16:02:25 2021 +0000
+++ b/main.cpp	Thu Aug 12 16:51:19 2021 +0000
@@ -152,8 +152,8 @@
             double printDemandSpeed = demandSpeed_RPM;
             double printCurrentSpeed = currentSpeedRPM;
             //mut1.unlock();
-            //printf("%f\t%f\r\n", currentSpeedRPM,_MagFil);
-            printf("%f\t%f\r\n", printDemandSpeed,printCurrentSpeed);
+            printf("%f\t%f\r\n", currentSpeedRPM,_MagFil);
+            //printf("%f\t%f\r\n", printDemandSpeed,printCurrentSpeed);
             //printf("%f\r\n",_MagFil);
         }
         if(state == STATE_ERROR){    
@@ -166,7 +166,7 @@
             double printCurrentSpeed = currentSpeedRPM;
             //mut1.unlock();
             //printf("%f\t%f\r\n", currentSpeedRPM,_MagFil);
-            printf("%f\t%f\r\n", printDemandSpeed,printCurrentSpeed);
+            //printf("%f\t%f\r\n", printDemandSpeed,printCurrentSpeed);
             //printf("%f\r\n",_MagFil);
         }
     }
@@ -374,7 +374,9 @@
         
         int count = 0;
         int blinkCount = 0;
-        pinLedRed = 0;
+        if(state == STATE_READY){
+            pinLedRed = 0;
+        }
         while(pinButton.read())
         {
             count++;