BLE - Signal to the HCI driver when the host stack is inactive

pull/10162/head
Vincent Coubard 2019-03-19 16:16:52 +00:00
parent 7ee811141b
commit 63b7e69d89
1 changed files with 3 additions and 0 deletions

View File

@ -564,6 +564,9 @@ void BLE::callDispatcher()
timestamp_t nextTimestamp = (timestamp_t) (WsfTimerNextExpiration(&pTimerRunning) * WSF_MS_PER_TICK) * 1000;
if (pTimerRunning) {
nextTimeout.attach_us(timeoutCallback, nextTimestamp);
} else {
critical_section.disable();
_hci_driver->on_host_stack_inactivity();
}
}
}