Fixed comment

This commit is contained in:
Kristian Lauszus 2012-10-07 19:12:26 +02:00
parent 940b8e185b
commit 2a6fa135e5
2 changed files with 5 additions and 3 deletions

View file

@ -878,13 +878,14 @@ void BTD::hci_pin_code_request_reply() {
for(uint8_t i = 16; i < 26; i++) for(uint8_t i = 16; i < 26; i++)
hcibuf[i] = 0x00; // The rest should be 0 hcibuf[i] = 0x00; // The rest should be 0
} else { } else {
hcibuf[9] = strlen(btdPin); // Length of key hcibuf[9] = strlen(btdPin); // Length of pin
uint8_t i; uint8_t i;
for(i = 0; i < strlen(btdPin); i++) // The maximum size of the key is 16 for(i = 0; i < strlen(btdPin); i++) // The maximum size of the pin is 16
hcibuf[i+10] = btdPin[i]; hcibuf[i+10] = btdPin[i];
for(;i < 16; i++) for(;i < 16; i++)
hcibuf[i+10] = 0x00; // The rest should be 0 hcibuf[i+10] = 0x00; // The rest should be 0
} }
HCI_Command(hcibuf, 26); HCI_Command(hcibuf, 26);
} }
void BTD::hci_pin_code_negative_request_reply() { void BTD::hci_pin_code_negative_request_reply() {

View file

@ -43,6 +43,7 @@ void WII::Reset() {
nunchuckConnected = false; nunchuckConnected = false;
motionPlusConnected = false; motionPlusConnected = false;
activateNunchuck = false; activateNunchuck = false;
motionValuesReset = false;
l2cap_event_flag = 0; // Reset flags l2cap_event_flag = 0; // Reset flags
l2cap_state = L2CAP_WAIT; l2cap_state = L2CAP_WAIT;
} }