Kelvin
-
2008-07-05
- assigned_to: nobody --> hiroaki0923
readingRegister must also be set when (cmd[1] & 0x04). When getting calibration data for the nunchuk, 0x04 is set, not 0x02.
~line476 or 0x04 in for the readingRegister check.
if (cmd[1] & (0x04 | 0x02)) readingRegister = YES;
This change will make readData:0x04A40020 correctly pull the nunchuck calibration data.
~line338 uncomment the init request.
ret = [self writeData:(darr){0x00} at:(unsigned long)0x04A40040 length:1]; // Init expansion device.
if (ret == kIOReturnSuccess){
// get calib data
this will work--> ret = [self readData:0x04A40020 length: 16];
Calibration data pull should also be added to the connect handler.
0.5 (2007.3.8)