Update

Dependencies:   mbed mbed-rtos X_NUCLEO_IHM02A1

Revision:
37:a74d377d8f74
Parent:
35:758191d5c6e1
Child:
38:3776ee18e56f
--- a/Buttons.cpp	Wed May 08 09:35:40 2019 +0000
+++ b/Buttons.cpp	Fri May 10 17:31:36 2019 +0000
@@ -28,7 +28,7 @@
         buttonSTART_enabled = false;
         buttonSTART_pressed = true; // To be read by the main loop
             
-        buttonSTART_timeout.attach(callback(buttonSTART_enabled_cb), 0.03); // Debounce time 300 ms
+        buttonSTART_timeout.attach(callback(buttonSTART_enabled_cb), 0.300); // Debounce time 300 ms
     }
 }
 /* ---------------------------------- END ----------------------------------- */
@@ -54,8 +54,25 @@
         buttonAbbruch_enabled = false;
         buttonAbbruch_pressed = true; // To be read by the main loop
             
-        buttonAbbruch_timeout.attach(callback(buttonAbbruch_enabled_cb), 0.03); // Debounce time 300 ms
+        buttonAbbruch_timeout.attach(callback(buttonAbbruch_enabled_cb), 0.300); // Debounce time 300 ms
     }
 }
+/*
+bool Button_2()
+{
+     if(Button2 == 1)
+     {
+         wait(0.1);
+         if(Button2 == 1)
+         {
+             retrun true;
+         }   
+         
+     }
+     else if(Button2 == 0)
+     {
+         
+     }
+}*/
 /* ---------------------------------- END ----------------------------------- */