Use BDCMotor_class.h instead of motor_class.h

Dependents:   HelloWorld_IHM04A1

Fork of X_NUCLEO_IHM04A1 by ST

Revision:
2:65057305b86e
Parent:
1:2597a6165252
Child:
3:b06e38d365d7
diff -r 2597a6165252 -r 65057305b86e Components/l6206/l6206_class.h
--- a/Components/l6206/l6206_class.h	Tue May 17 09:45:13 2016 +0000
+++ b/Components/l6206/l6206_class.h	Tue May 17 12:14:35 2016 +0000
@@ -645,7 +645,7 @@
         /* Computing the period of PWM. */
         float period = 1.0f / newFreq;
         float duty_cycle;
-        int period_us = (int)(period * 1E6);
+        int period_us = (int)(period * 1000000);
 
         if (duty > 100)   duty = 100;
         duty_cycle = (float)duty / 100.0f;