From 0b2e444e7b9db182d18b3c7ea7100c59f088b31d Mon Sep 17 00:00:00 2001 From: Kristian Lauszus Date: Fri, 13 Dec 2013 11:27:05 +0100 Subject: [PATCH] Fixed macros in Wii.h as well --- Wii.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Wii.h b/Wii.h index 06a74ee5..8b46c2b2 100755 --- a/Wii.h +++ b/Wii.h @@ -30,9 +30,9 @@ #define WII_FLAG_MOTION_PLUS_CONNECTED 0x01 #define WII_FLAG_NUNCHUCK_CONNECTED 0x02 -#define wii_check_flag(flag) (wii_event_flag & flag) -#define wii_set_flag(flag) (wii_event_flag |= flag) -#define wii_clear_flag(flag) (wii_event_flag &= ~flag) +#define wii_check_flag(flag) (wii_event_flag & (flag)) +#define wii_set_flag(flag) (wii_event_flag |= (flag)) +#define wii_clear_flag(flag) (wii_event_flag &= ~(flag)) /** Enum used to read the joystick on the Nunchuck. */ enum Hat {