fix mac expansion handshake by propagating the event on receive

This commit is contained in:
Lysann Schlegel
2012-11-10 00:52:05 +01:00
parent be1f23ff70
commit f7b4fd44a0
2 changed files with 20 additions and 5 deletions

View File

@@ -801,6 +801,7 @@ void handshake_expansion(struct wiimote_t* wm, byte* data, uint16_t len) {
WIIUSE_DEBUG("no handshake data received from expansion");
return;
}
wm->expansion_state = 0;
id = from_big_endian_uint32_t(data + 220);
switch(id) {
case EXP_ID_CODE_NUNCHUK: