Skip to content

Commit ba95bd8

Browse files
authored
Update USAGE.md
Fix some minor typos in lambda's with multiple parameters
1 parent 107435f commit ba95bd8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

USAGE.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ writeCharacteristic(someCharacteristic, someData, BluetoothGattCharacteristic.WR
138138
// .split() with no parameters uses the default MTU splitter.
139139
// Kotlin projects can use .splitWithProgressAsFlow(customSplitter) to get the progress as Flow.
140140
.before(device -> { /* called when the request is about to be executed */ })
141-
.with(device, data -> { /* called when the request has been executed */ })
141+
.with( (device, data) -> { /* called when the request has been executed */ })
142142
.done(device -> { /* called when the request has completed successfully */ })
143143
.fail(device, status -> { /* called when the request has failed */ })
144144
.invalid({ /* called when the request was invalid, i.e. the target device or given characteristic was null */ })
@@ -157,7 +157,7 @@ readCharacteristic(someCharacteristic)
157157
// Complete, merged packets can also be filtered.
158158
.filterPacket(packetFilter)
159159
// [...]
160-
.with(device, data -> { /* called when the data have been received */ })
160+
.with( (device, data) -> { /* called when the data have been received */ })
161161
// [...]
162162
// Once again, remember to enqueue each request!
163163
.enqueue()
@@ -241,4 +241,4 @@ val response: MyResponse = readCharacteristic(someCharacteristic)
241241
To validate the received value use `suspendForValidResponse()` with a type extending `ProfileReadResponse`.
242242
See an example [here](https://github.com/NordicSemiconductor/Android-nRF-Blinky/blob/8352e92ce2dd12af5a05a60643a64187473adbc0/blinky/ble/src/main/java/no/nordicsemi/android/blinky/ble/data/LedCallback.kt#L7).
243243

244-
</details>
244+
</details>

0 commit comments

Comments
 (0)