From ad79a2ff53b4fbd6a5c941421661d667bdfb1174 Mon Sep 17 00:00:00 2001 From: Lysann Schlegel Date: Mon, 12 Nov 2012 01:56:34 +0100 Subject: [PATCH] fix motion plus handshake on mac by disabling expansion handshake while motion plus handshake is being done --- src/events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events.c b/src/events.c index 70d3404..d6d49ec 100644 --- a/src/events.c +++ b/src/events.c @@ -525,7 +525,7 @@ static void event_status(struct wiimote_t* wm, byte* msg) { wm->battery_level = (msg[5] / (float)WM_MAX_BATTERY_CODE); /* expansion port */ - if (attachment && !WIIMOTE_IS_SET(wm, WIIMOTE_STATE_EXP)) { + if (attachment && !WIIMOTE_IS_SET(wm, WIIMOTE_STATE_EXP) && !WIIMOTE_IS_SET(wm, WIIMOTE_STATE_EXP_HANDSHAKE)) { /* send the initialization code for the attachment */ handshake_expansion(wm, NULL, 0); exp_changed = 1;