mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Minor edit
This commit is contained in:
parent
0719b242af
commit
d495336442
2 changed files with 3 additions and 3 deletions
|
@ -567,7 +567,7 @@ void PS3BT::Run() {
|
|||
void PS3BT::HID_Command(uint8_t* data, uint8_t nbytes) {
|
||||
if (millis() - timerHID <= 250)// Check if is has been more than 250ms since last command
|
||||
delay((uint32_t)(250 - (millis() - timerHID)));//There have to be a delay between commands
|
||||
pBtd->L2CAP_Command(hci_handle,data,nbytes,control_scid[0],control_scid[1]); // Both the Navigation and Dualshock controller sends data via the controller channel
|
||||
pBtd->L2CAP_Command(hci_handle,data,nbytes,control_scid[0],control_scid[1]); // Both the Navigation and Dualshock controller sends data via the control channel
|
||||
timerHID = millis();
|
||||
}
|
||||
void PS3BT::setAllOff() {
|
||||
|
|
4
SPP.cpp
4
SPP.cpp
|
@ -735,8 +735,8 @@ void SPP::print(const __FlashStringHelper *ifsh) {
|
|||
print(buf,size);
|
||||
}
|
||||
void SPP::println(const String &str) {
|
||||
str + "\r\n";
|
||||
print(str);
|
||||
String output = str + "\r\n";
|
||||
print(output);
|
||||
}
|
||||
void SPP::println(const char* data) {
|
||||
char output[strlen(data)+2];
|
||||
|
|
Loading…
Reference in a new issue