fix motion plus handshake on mac by disabling expansion handshake while motion plus handshake is being done

This commit is contained in:
Lysann Schlegel
2012-11-12 01:56:34 +01:00
parent 7b13623d12
commit ad79a2ff53

View File

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