mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #9365 from lrusinowicz/cordio_ble_fix
Fix for asserion failing in BLE::callDispatcher with gcc debug profile.pull/10931/head
commit
d0665c8458
|
@ -423,10 +423,10 @@ void BLE::callDispatcher()
|
||||||
|
|
||||||
wsfOsDispatcher();
|
wsfOsDispatcher();
|
||||||
|
|
||||||
|
static Timeout nextTimeout;
|
||||||
CriticalSectionLock critical_section;
|
CriticalSectionLock critical_section;
|
||||||
|
|
||||||
if (wsfOsReadyToSleep()) {
|
if (wsfOsReadyToSleep()) {
|
||||||
static Timeout nextTimeout;
|
|
||||||
// setup an mbed timer for the next Cordio timeout
|
// setup an mbed timer for the next Cordio timeout
|
||||||
bool_t pTimerRunning;
|
bool_t pTimerRunning;
|
||||||
timestamp_t nextTimestamp = (timestamp_t) (WsfTimerNextExpiration(&pTimerRunning) * WSF_MS_PER_TICK) * 1000;
|
timestamp_t nextTimestamp = (timestamp_t) (WsfTimerNextExpiration(&pTimerRunning) * WSF_MS_PER_TICK) * 1000;
|
||||||
|
|
Loading…
Reference in New Issue