Skip to content

Commit

Permalink
Spellcheck fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownconstant committed Jan 24, 2021
1 parent a429760 commit 3dd53d1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void setup() {
// The LTK is the secret key which is used to encrypt bluetooth traffic
BLE.setGetLTK([](uint8_t* address, uint8_t* LTK){
// address is input
Serial.print("Recieved request for address: ");
Serial.print("Received request for address: ");
btct.printBytes(address,6);

// Set these to the MAC and LTK of your devices after bonding.
Expand Down
2 changes: 1 addition & 1 deletion src/local/BLELocalDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ int BLELocalDevice::begin()

/// The HCI should allow automatic address resolution.

// // If we have callbacks to rememember bonded devices:
// // If we have callbacks to remember bonded devices:
// if(HCI._getIRKs!=0){
// uint8_t nIRKs = 0;
// uint8_t** BADDR_Type = new uint8_t*;
Expand Down
2 changes: 1 addition & 1 deletion src/utility/ATT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ bool ATTClass::handleNotify(uint16_t handle, const uint8_t* value, int length)
memcpy(&notification[notificationLength], value, length);
notificationLength += length;

/// TODO: Set encyption requirement on notify.
/// TODO: Set encryption requirement on notify.
HCI.sendAclPkt(_peers[i].connectionHandle, ATT_CID, notificationLength, notification);

numNotifications++;
Expand Down
4 changes: 2 additions & 2 deletions src/utility/HCI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ void HCIClass::handleEventPkt(uint8_t /*plen*/, uint8_t pdata[])
if((ATT.getPeerEncryption(encryptionChange->connectionHandle)&PEER_ENCRYPTION::PAIRING_REQUEST)>0){
if(ATT.localKeyDistribution.EncKey()){
#ifdef _BLE_TRACE_
Serial.println("Enc key set but sould be ignored");
Serial.println("Enc key set but should be ignored");
#endif
}else{
#ifdef _BLE_TRACE_
Expand Down Expand Up @@ -1364,7 +1364,7 @@ void HCIClass::handleEventPkt(uint8_t /*plen*/, uint8_t pdata[])

if((encryption & PEER_ENCRYPTION::RECEIVED_DH_CHECK) > 0){
#ifdef _BLE_TRACE_
Serial.println("Recieved DHKey check already so calculate f5, f6 now.");
Serial.println("Received DHKey check already so calculate f5, f6 now.");
#endif
L2CAPSignaling.smCalculateLTKandConfirm(connectionHandle, HCI.remoteDHKeyCheckBuffer);

Expand Down

0 comments on commit 3dd53d1

Please sign in to comment.