From 3708afeb1c99197d9dfe055cb0e050ecea3c793d Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Fri, 27 Sep 2013 17:47:57 -0500 Subject: [PATCH] Update wiiuse.h Fix compile time error in WIIUSE_GET_IR_SENSITIVITY. Thanks to @Squareys for bringing this up by filing #46. I so dislike C preprocessor macros... --- src/wiiuse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wiiuse.h b/src/wiiuse.h index 8f4ef62..a169386 100644 --- a/src/wiiuse.h +++ b/src/wiiuse.h @@ -294,7 +294,7 @@ typedef enum ir_position_t { * @param lvl [out] Pointer to an int that will hold the level setting. * If no level is set 'lvl' will be set to 0. */ -#define WIIUSE_GET_IR_SENSITIVITY(dev, lvl) \ +#define WIIUSE_GET_IR_SENSITIVITY(wm, lvl) \ do { \ if ((wm->state & 0x0200) == 0x0200) *lvl = 1; \ else if ((wm->state & 0x0400) == 0x0400) *lvl = 2; \