PRJ1401_LIDAR / PwmIn

Dependents:   Nucleo_Une_Mesure Nucleo_LIDAR_PRJ_2018-19

Files at this revision

API Documentation at this revision

Comitter:
Nilox
Date:
Wed Feb 20 20:44:54 2019 +0000
Parent:
1:6d68eb9b6bbb
Commit message:

Changed in this revision

PwmIn.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/PwmIn.cpp	Thu Sep 02 18:17:35 2010 +0000
+++ b/PwmIn.cpp	Wed Feb 20 20:44:54 2019 +0000
@@ -43,10 +43,10 @@
 }
 
 void PwmIn::rise() {
-    _period = _t.read();
+    _period = _t.read_us();
     _t.reset();
 }
 
 void PwmIn::fall() {
-    _pulsewidth = _t.read();
+    _pulsewidth = _t.read_us();
 }