GroupA / Mbed 2 deprecated WaG_final

Dependencies:   mbed

Fork of Lab_6_WaG by GroupA

Revision:
74:8881f4aeb174
Parent:
35:ad2b3d6f0e5a
--- a/utility.cpp	Mon Apr 23 21:41:15 2018 +0000
+++ b/utility.cpp	Tue Apr 24 16:26:38 2018 +0000
@@ -19,7 +19,7 @@
 #include <stdio.h>
 #include <string.h>
 
-extern DigitalIn my_button;
+extern DigitalIn start_button;
 
 /*
  * int uti_chk_ubutton();
@@ -33,13 +33,13 @@
  *      Returns: void
 */
 int uti_chk_ubutton() {
-    if (my_button == 0)
+    if (start_button == 0)
         return 0; // exits if button is not pressed
     else {
         //cycle until button is released
         do { 
         wait(0.02); 
-        } while (my_button == 1); 
+        } while (start_button == 1); 
         wait(0.02); //delay to prevent debounce
         return 1;
     }