fix motion plus handshake on mac by disabling expansion handshake while motion plus handshake is being done
This commit is contained in:
@@ -525,7 +525,7 @@ static void event_status(struct wiimote_t* wm, byte* msg) {
|
|||||||
wm->battery_level = (msg[5] / (float)WM_MAX_BATTERY_CODE);
|
wm->battery_level = (msg[5] / (float)WM_MAX_BATTERY_CODE);
|
||||||
|
|
||||||
/* expansion port */
|
/* 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 */
|
/* send the initialization code for the attachment */
|
||||||
handshake_expansion(wm, NULL, 0);
|
handshake_expansion(wm, NULL, 0);
|
||||||
exp_changed = 1;
|
exp_changed = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user