Skip to content

Commit

Permalink
[Telink] Fixed hanging on BLE Shutdown (TC-SC-4.1)
Browse files Browse the repository at this point in the history
Refactored BLE shutdown condition to pass test TC-SC-4.1.
Device would become stuck at scheduler routines after open-basic-commissioning-window time expires.

Signed-off-by: Dmytro Huz  <[email protected]>
  • Loading branch information
interfer committed Nov 1, 2023
1 parent c2fae17 commit 1e2204a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/platform/telink/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,10 @@ CHIP_ERROR BLEManagerImpl::_Init(void)

void BLEManagerImpl::_Shutdown()
{
bt_disable();
mBLERadioInitialized = false;
if (mBLERadioInitialized) {
bt_disable();
mBLERadioInitialized = false;
}
}

void BLEManagerImpl::DriveBLEState(intptr_t arg)
Expand Down

0 comments on commit 1e2204a

Please sign in to comment.