Michael Ernst Peter / FastPWM

Dependents:   PM2_Libary PM2_Libary

Revision:
38:b83caa1bcbc7
Parent:
37:0ca2cf9a1437
diff -r 0ca2cf9a1437 -r b83caa1bcbc7 FastPWM_common.cpp
--- a/FastPWM_common.cpp	Mon Mar 21 13:31:01 2022 +0000
+++ b/FastPWM_common.cpp	Mon Mar 21 14:03:24 2022 +0000
@@ -7,9 +7,7 @@
     
     //Set duty cycle on 0%, period on 20ms
     period(0.02);
-    write(0);
-    
-
+    write(0.0);
 }
 
 FastPWM::~FastPWM( void ) {