mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Fixed comment
This commit is contained in:
parent
940b8e185b
commit
2a6fa135e5
2 changed files with 5 additions and 3 deletions
5
BTD.cpp
5
BTD.cpp
|
@ -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() {
|
||||||
|
|
1
Wii.cpp
1
Wii.cpp
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue