CMM2: minor Nunchuk/Classic controller "bug"


Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 3659
Posted: 11:29am 21 Nov 2022      

Hi Peter,

It appears to be currently possible from MMBasic to open a Wii controller and then read from it before the firmware has performed the first (16 mSec) poll of the controller resulting in the "initial values" being returned (these appear to be zeroes, but I think I saw "garbage" on one occasion that I can't now reproduce.)

It's easy enough to workaround (add a short PAUSE), but you might want to consider updating the firmware to force a poll immediately after the controller has opened, or equivalently add a pause at the end of the OPEN routine; assuming that won't block the poll.

Best wishes,

Tom
Edited 2022-11-21 21:29 by thwill