Tommie Verouden / Mbed 2 deprecated StateMachine

Dependencies:   biquadFilter FastPWM MODSERIAL QEI mbed

Revision:
10:584b7d2c2d63
Parent:
9:8a162a3505ed
Child:
11:2d1dfebae948
--- a/main.cpp	Wed Oct 31 21:23:59 2018 +0000
+++ b/main.cpp	Wed Oct 31 21:24:48 2018 +0000
@@ -49,6 +49,7 @@
 void blinkLED(DigitalOut led)                                                   // blinkTimer.attach(&blinkLED,0.5) aanroepen bij initialisation, bij verlaten state:
 {                                                                               // blinkTimer.detach
     led =! led;                         // toggle LED
+}
     
 //  ============================ MOTOR FUNCTIONS ==============================
 
@@ -112,7 +113,7 @@
                 // Actions when leaving state
                 /* */
 
-                currentState = calibratingEMGx;     // change to state
+                currentState = calibratingEMG;     // change to state
                 changeState = true;                 // next loop, switch states
             }
             break; // end case