Oscar Schofield / Mbed 2 deprecated Elec350_OBS

Dependencies:   mbed

Revision:
4:5d531bd3c4ea
Parent:
3:8dca756d9804
Child:
7:1e9cd1481e80
--- a/button.cpp	Tue Oct 20 09:49:08 2015 +0000
+++ b/button.cpp	Tue Oct 20 09:53:16 2015 +0000
@@ -19,7 +19,7 @@
         while (*pin==1){
             timer.start();
         }
-        duration= timer.read_ms();
+        duration= 0.1*timer.read_ms();
         timer.stop();
     }
     return duration;