Skip to content

Commit 33a8c3b

Browse files
authored
Merge pull request #6 from cparata/master
Sync with ArduinoBLE library
2 parents b530dec + 0c59e94 commit 33a8c3b

File tree

5 files changed

+44
-49
lines changed

5 files changed

+44
-49
lines changed

Diff for: .github/workflows/compile-examples.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Compile Examples
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
7+
strategy:
8+
matrix:
9+
fqbn: [
10+
"arduino:samd:mkrwifi1010",
11+
"arduino:samd:nano_33_iot",
12+
"arduino:megaavr:uno2018:mode=on",
13+
"arduino:mbed:nano33ble"
14+
]
15+
16+
steps:
17+
- uses: actions/checkout@v1
18+
with:
19+
fetch-depth: 1
20+
- uses: arduino/actions/libraries/compile-examples@master
21+
with:
22+
fqbn: ${{ matrix.fqbn }}

Diff for: .github/workflows/spell-check.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Spell Check
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
7+
steps:
8+
- uses: actions/checkout@v1
9+
with:
10+
fetch-depth: 1
11+
- uses: arduino/actions/libraries/spell-check@master

Diff for: .travis.yml

-38
This file was deleted.

Diff for: 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");

Diff for: 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)