Oscar Schofield / Mbed 2 deprecated Elec350_OBS

Dependencies:   mbed

Revision:
12:08a1971c9441
Parent:
11:444afcb2f59f
Child:
13:4b9c32ba0572
--- a/button.cpp	Thu Nov 12 11:45:22 2015 +0000
+++ b/button.cpp	Thu Nov 12 12:01:14 2015 +0000
@@ -23,6 +23,7 @@
     while(this->ifPressed()== false){
         if (timeout != -1.0f && timer.read() > timeout){
             return -1.0f;
+         }
     }
     
     timer.stop();