Gabriel Ligeiro / Projeto_Mecatronico

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Revision:
30:a05820cfdba9
Parent:
28:f6093f7cdc09
Child:
32:6e5198e46287
--- a/Components/l6474/l6474_class.h	Tue Sep 27 12:15:41 2016 +0000
+++ b/Components/l6474/l6474_class.h	Fri Oct 28 13:24:55 2016 +0000
@@ -872,7 +872,7 @@
         pwm.write(0.5f);
 
         /* Setting a callback with the same period of PWM's, to update the state machine. */
-        ticker.attach(this, &L6474::L6474_StepClockHandler, period);
+        ticker.attach(Callback<void()>(this, &L6474::L6474_StepClockHandler), period);
     }
 
     /**