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.
Diff: Joystick.h
- Revision:
- 5:36cca0038ae3
- Parent:
- 4:9553952c95f5
--- a/Joystick.h Sun Jun 07 17:07:22 2020 +0000
+++ b/Joystick.h Wed Jul 01 14:18:49 2020 +0000
@@ -110,7 +110,7 @@
/** Reads the state of the button flag
* @returns the button flag
*/
- int get_button_flag();
+ bool get_button_flag();
/** Sets the button flag
* @param value The value the flag will be set to
@@ -127,7 +127,7 @@
float y_offset_;
//returns one or zero
- volatile int g_button_flag_;
+ volatile bool g_button_flag_;
};
#endif
\ No newline at end of file