Use BDCMotor_class.h instead of motor_class.h
Dependents: HelloWorld_IHM04A1
Fork of X_NUCLEO_IHM04A1 by
Revision 2:65057305b86e, committed 2016-05-17
- Comitter:
- brdirais
- Date:
- Tue May 17 12:14:35 2016 +0000
- Parent:
- 1:2597a6165252
- Child:
- 3:b06e38d365d7
- Commit message:
- Change 1E6 by 1000000
Changed in this revision
| Components/l6206/l6206_class.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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;
