Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of Lab_6_WaG by
Diff: utility.cpp
- Revision:
- 74:8881f4aeb174
- Parent:
- 35:ad2b3d6f0e5a
diff -r e8f7ee59d3e5 -r 8881f4aeb174 utility.cpp
--- 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;
}
