Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 1f530c4

Browse files
authored
Merge pull request #392 from turon/pr/toble-fixes
[toble] Fix ble pairing conflicts with thread
2 parents 914546c + 85affcd commit 1f530c4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/adaptations/device-layer/include/Weave/DeviceLayer/OpenThread/GenericThreadStackManagerImpl_OpenThread.ipp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,13 +1005,13 @@ WEAVE_ERROR GenericThreadStackManagerImpl_OpenThread<ImplClass>::DoInit(otInstan
10051005
otIp6SetSlaacEnabled(otInst, false);
10061006
#endif
10071007

1008-
// Enable the Thread IPv6 interface.
1009-
otErr = otIp6SetEnabled(otInst, true);
1010-
VerifyOrExit(otErr == OT_ERROR_NONE, err = MapOpenThreadError(otErr));
1011-
10121008
// If the Thread stack has been provisioned, but is not currently enabled, enable it now.
10131009
if (otThreadGetDeviceRole(mOTInst) == OT_DEVICE_ROLE_DISABLED && otDatasetIsCommissioned(otInst))
10141010
{
1011+
// Enable the Thread IPv6 interface.
1012+
otErr = otIp6SetEnabled(otInst, true);
1013+
VerifyOrExit(otErr == OT_ERROR_NONE, err = MapOpenThreadError(otErr));
1014+
10151015
otErr = otThreadSetEnabled(otInst, true);
10161016
VerifyOrExit(otErr == OT_ERROR_NONE, err = MapOpenThreadError(otErr));
10171017
}

src/adaptations/device-layer/nRF5/BLEManagerImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ void BLEManagerImpl::HandleSoftDeviceBLEEvent(const WeaveDeviceEvent * event)
614614
WeaveLogProgress(DeviceLayer, "BLE GATT Server timeout (con %" PRIu16 ")", bleEvent->evt.gatts_evt.conn_handle);
615615
err = sd_ble_gap_disconnect(bleEvent->evt.gatts_evt.conn_handle,
616616
BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);
617-
APP_ERROR_CHECK(err);
617+
SuccessOrExit(err);
618618
break;
619619

620620
case BLE_GATTS_EVT_WRITE:

0 commit comments

Comments
 (0)