Progra Mator / Joystick_fixed
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