Closed jhintringer closed 6 years ago
The Exception occurs in the method "ParseReadData()" in Wiimote.cs:
Line 911: Array.Copy(buff, 6, mReadBuff, offset - mAddress, size);
At runtime these values are:( buff[22] , 6 , mReadBuff[7] , offset=22 - mAddress=22 , size=16 );
Solved this issue by using 16 as buffer size for the Wiimote Calibration:
Line 935: Wiimote.cs
private void ReadWiimoteCalibration()
{
// this appears to change the report type to 0x31
byte[] buff = ReadData(0x0016, 16); // <--- change this from 7 to 16
FYI : I am using a rebranded version of the BalanceBoard from bigben.
I got an Exception while using Wii Balance Walker and trying to connect to the Wii Balance Board.
Additional Informations:
OS: Win 10 64bit App: Wii Balance Walker v0.4 DLL: WiimoteLib v1.8.0 (resp. v1.7.0)