Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauszus committed Apr 19, 2016
1 parent 85a6c43 commit 00658d6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions BTD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ void BTD::HCI_event_task() {
break;

case EV_AUTHENTICATION_COMPLETE:
if(!hcibuf[2]) { // Check if paring was successful
if(!hcibuf[2]) { // Check if pairing was successful
if(pairWithWii && !connectToWii) {
#ifdef DEBUG_USB_HOST
Notify(PSTR("\r\nPairing successful with Wiimote"), 0x80);
Expand All @@ -603,7 +603,7 @@ void BTD::HCI_event_task() {
}
} else {
#ifdef DEBUG_USB_HOST
Notify(PSTR("\r\nParing Failed: "), 0x80);
Notify(PSTR("\r\nPairing Failed: "), 0x80);
D_PrintHex<uint8_t > (hcibuf[2], 0x80);
#endif
hci_disconnect(hci_handle);
Expand Down Expand Up @@ -1110,7 +1110,7 @@ void BTD::hci_pin_code_request_reply() {
hcibuf[9] = 6; // Pin length is the length of the Bluetooth address
if(pairWiiUsingSync) {
#ifdef DEBUG_USB_HOST
Notify(PSTR("\r\nParing with Wii controller via SYNC"), 0x80);
Notify(PSTR("\r\nPairing with Wii controller via SYNC"), 0x80);
#endif
for(uint8_t i = 0; i < 6; i++)
hcibuf[10 + i] = my_bdaddr[i]; // The pin is the Bluetooth dongles Bluetooth address backwards
Expand Down
2 changes: 1 addition & 1 deletion BTD.h
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ class BTD : public USBDeviceConfig, public UsbConfigXtracter {
uint8_t pollInterval;
bool bPollEnable;

bool pairWiiUsingSync; // True if paring was done using the Wii SYNC button.
bool pairWiiUsingSync; // True if pairing was done using the Wii SYNC button.
bool checkRemoteName; // Used to check remote device's name before connecting.
bool incomingPS4; // True if a PS4 controller is connecting
uint8_t classOfDevice[3]; // Class of device of last device
Expand Down
2 changes: 1 addition & 1 deletion BTHID.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class BTHID : public BluetoothService {
/** True if a device is connected */
bool connected;

/** Call this to start the paring sequence with a device */
/** Call this to start the pairing sequence with a device */
void pair(void) {
if(pBtd)
pBtd->pairWithHID();
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ The [PS4BT.ino](examples/Bluetooth/PS4BT/PS4BT.ino) and [PS4USB.ino](examples/PS
Before you can use the PS4 controller via Bluetooth you will need to pair with it.
Simply create the PS4BT instance like so: ```PS4BT PS4(&Btd, PAIR);``` and then hold down the Share button and then hold down the PS without releasing the Share button. The PS4 controller will then start to blink rapidly indicating that it is in paring mode.
Simply create the PS4BT instance like so: ```PS4BT PS4(&Btd, PAIR);``` and then hold down the Share button and then hold down the PS without releasing the Share button. The PS4 controller will then start to blink rapidly indicating that it is in pairing mode.
It should then automatically pair the dongle with your controller. This only have to be done once.
Expand Down
2 changes: 1 addition & 1 deletion Wii.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class WII : public BluetoothService {

/** @name Wii Controller functions */

/** Call this to start the paring sequence with a controller */
/** Call this to start the pairing sequence with a controller */
void pair(void) {
if(pBtd)
pBtd->pairWithWiimote();
Expand Down
2 changes: 1 addition & 1 deletion examples/Bluetooth/PS4BT/PS4BT.ino
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ BTD Btd(&Usb); // You have to create the Bluetooth Dongle instance like so

/* You can create the instance of the PS4BT class in two ways */
// This will start an inquiry and then pair with the PS4 controller - you only have to do this once
// You will need to hold down the PS and Share button at the same time, the PS4 controller will then start to blink rapidly indicating that it is in paring mode
// You will need to hold down the PS and Share button at the same time, the PS4 controller will then start to blink rapidly indicating that it is in pairing mode
PS4BT PS4(&Btd, PAIR);

// After that you can simply create the instance like so and then press the PS button on the device
Expand Down

0 comments on commit 00658d6

Please sign in to comment.