Skip to content

Commit 41038f3

Browse files
committed
Correct spelling
1 parent 66601c7 commit 41038f3

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

examples/Central/PeripheralExplorer/PeripheralExplorer.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void exploreService(BLEService service) {
120120
}
121121

122122
void exploreCharacteristic(BLECharacteristic characteristic) {
123-
// print the UUID and properies of the characteristic
123+
// print the UUID and properties of the characteristic
124124
Serial.print("\tCharacteristic ");
125125
Serial.print(characteristic.uuid());
126126
Serial.print(", properties 0x");

src/utility/ATT.cpp

+10-10
Original file line numberDiff line numberDiff line change
@@ -519,20 +519,20 @@ bool ATTClass::handleNotify(uint16_t handle, const uint8_t* value, int length)
519519
continue;
520520
}
521521

522-
uint8_t notication[_peers[i].mtu];
523-
uint16_t noticationLength = 0;
522+
uint8_t notification[_peers[i].mtu];
523+
uint16_t notificationLength = 0;
524524

525-
notication[0] = ATT_OP_HANDLE_NOTIFY;
526-
noticationLength++;
525+
notification[0] = ATT_OP_HANDLE_NOTIFY;
526+
notificationLength++;
527527

528-
memcpy(&notication[1], &handle, sizeof(handle));
529-
noticationLength += sizeof(handle);
528+
memcpy(&notification[1], &handle, sizeof(handle));
529+
notificationLength += sizeof(handle);
530530

531-
length = min((uint16_t)(_peers[i].mtu - noticationLength), (uint16_t)length);
532-
memcpy(&notication[noticationLength], value, length);
533-
noticationLength += length;
531+
length = min((uint16_t)(_peers[i].mtu - notificationLength), (uint16_t)length);
532+
memcpy(&notification[notificationLength], value, length);
533+
notificationLength += length;
534534

535-
HCI.sendAclPkt(_peers[i].connectionHandle, ATT_CID, noticationLength, notication);
535+
HCI.sendAclPkt(_peers[i].connectionHandle, ATT_CID, notificationLength, notification);
536536

537537
numNotifications++;
538538
}

0 commit comments

Comments
 (0)