Skip to content

Commit d0665c8

Browse files
author
Cruz Monrreal
authored
Merge pull request #9365 from lrusinowicz/cordio_ble_fix
Fix for asserion failing in BLE::callDispatcher with gcc debug profile.
2 parents 97486a6 + f294447 commit d0665c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,10 +423,10 @@ void BLE::callDispatcher()
423423

424424
wsfOsDispatcher();
425425

426+
static Timeout nextTimeout;
426427
CriticalSectionLock critical_section;
427428

428429
if (wsfOsReadyToSleep()) {
429-
static Timeout nextTimeout;
430430
// setup an mbed timer for the next Cordio timeout
431431
bool_t pTimerRunning;
432432
timestamp_t nextTimestamp = (timestamp_t) (WsfTimerNextExpiration(&pTimerRunning) * WSF_MS_PER_TICK) * 1000;

0 commit comments

Comments
 (0)