Skip to content

Commit

Permalink
Fix Darwin host build (project-chip#3990)
Browse files Browse the repository at this point in the history
#### Problem

Some conversions to use PacketBufferHandle (project-chip#3909) broke Darwin builds,
which aren't currently run in CI.

#### Summary of Changes

Fix src/platform/Darwin/BleConnectionDelegateImpl.mm to match the API
change in project-chip#3909.
  • Loading branch information
kpschoedel authored and hnnajh committed Dec 10, 2020
1 parent 4b6f8e1 commit c3ea235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/Darwin/BleConnectionDelegateImpl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ - (void)peripheral:(CBPeripheral *)peripheral
std::is_same<decltype(msgBuf->MaxDataLength()), uint16_t>::value, "Unexpected type for max data length");
msgBuf->SetDataLength(static_cast<uint16_t>(characteristic.value.length));

if (!_mBleLayer->HandleIndicationReceived((__bridge void *) peripheral, &svcId, &charId, msgBuf.Release_ForNow())) {
if (!_mBleLayer->HandleIndicationReceived((__bridge void *) peripheral, &svcId, &charId, std::move(msgBuf))) {
// since this error comes from device manager core
// we assume it would do the right thing, like closing the connection
ChipLogError(Ble, "Failed at handling incoming BLE data");
Expand Down

0 comments on commit c3ea235

Please sign in to comment.