Make disable_expansion reset expansion state to 0.

Lets you unplug expansions and replug or plug a different one.
This commit is contained in:
Ryan Pavlik
2012-06-28 16:24:50 -05:00
parent e8a7ad62fc
commit 3d21a25822

View File

@@ -890,6 +890,7 @@ void disable_expansion(struct wiimote_t* wm) {
WIIMOTE_DISABLE_STATE(wm, WIIMOTE_STATE_EXP);
wm->exp.type = EXP_NONE;
wm->expansion_state = 0;
}