Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Unplugging Nunchuk while MotionPlus is reporting results in bad Nunchuk data #31
This is with the osx-refactor_sync-mplus branch which I anticipate merging soon. Start the example, and plug in a nunchuk. Then, press 1+2 to turn on motion plus reporting. You'll see you're getting reports from the motion+ and the various sensors in the nunchuk. Now, unplug the nunchuk. The same output will be given, except that the accel data will all be 0 for the nunchuk and the analog stick data will appear the same as it did during the last report.
Only after disabling the Motion+ (by pressing 1+2, I seem to have to do it a few times), does the nunchuk stop "reporting". Plugging it back in resumes correct operation.
That is likely unfixable - I don't think that there is an "expansion unplugged" status report being sent if it is an expansion hanging off the Motion+. Wiimote knows only about a single expansion - the Motion+ in that case and has no idea that the other cascaded expansion was unplugged.