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...
This commit is contained in:
Ryan Pavlik
2013-09-27 17:47:57 -05:00
parent 5a17806fc7
commit 3708afeb1c

View File

@@ -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; \