Skip to content

Commit 63b7e69

Browse files
committed
BLE - Signal to the HCI driver when the host stack is inactive
1 parent 7ee8111 commit 63b7e69

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioBLE.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,9 @@ void BLE::callDispatcher()
564564
timestamp_t nextTimestamp = (timestamp_t) (WsfTimerNextExpiration(&pTimerRunning) * WSF_MS_PER_TICK) * 1000;
565565
if (pTimerRunning) {
566566
nextTimeout.attach_us(timeoutCallback, nextTimestamp);
567+
} else {
568+
critical_section.disable();
569+
_hci_driver->on_host_stack_inactivity();
567570
}
568571
}
569572
}

0 commit comments

Comments
 (0)