From e8a7ad62fc94ce8ee48ba9d14ce4b7b07eee17f7 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Thu, 28 Jun 2012 16:23:56 -0500 Subject: [PATCH] If no handshake data received from the expansion, disable it. Should give it a chance to re-handshake instead of getting stuck in "case 3" --- src/events.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/events.c b/src/events.c index 2820ec1..884f313 100644 --- a/src/events.c +++ b/src/events.c @@ -798,6 +798,7 @@ void handshake_expansion(struct wiimote_t* wm, byte* data, uint16_t len) { case 3: if(!data || !len) { WIIUSE_DEBUG("no handshake data received from expansion"); + disable_expansion(wm); return; } id = from_big_endian_uint32_t(data + 220);