Merge pull request #9365 from lrusinowicz/cordio_ble_fix

Fix for asserion failing in BLE::callDispatcher with gcc debug profile.
pull/10931/head
Cruz Monrreal 2019-01-16 22:03:16 -06:00 committed by GitHub
commit d0665c8458
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -423,10 +423,10 @@ void BLE::callDispatcher()
wsfOsDispatcher();
static Timeout nextTimeout;
CriticalSectionLock critical_section;
if (wsfOsReadyToSleep()) {
static Timeout nextTimeout;
// setup an mbed timer for the next Cordio timeout
bool_t pTimerRunning;
timestamp_t nextTimestamp = (timestamp_t) (WsfTimerNextExpiration(&pTimerRunning) * WSF_MS_PER_TICK) * 1000;