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"
This commit is contained in:
Ryan Pavlik
2012-06-28 16:23:56 -05:00
parent 713456b563
commit e8a7ad62fc

View File

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