Skip to content
Snippets Groups Projects
Verified Commit ac5631e6 authored by schneider's avatar schneider Committed by rahix
Browse files

fix(ble): Regularly update WSF timers

parent 425d47cf
No related branches found
No related tags found
No related merge requests found
......@@ -133,7 +133,7 @@ static void vTimerCallback(xTimerHandle pxTimer)
{
//printf("wake\n");
int tick = xTaskGetTickCount();
printf("WsfTimerUpdate(%d)\n", tick - lasttick);
//printf("WsfTimerUpdate(%d)\n", tick - lasttick);
WsfTimerUpdate(tick - lasttick);
lasttick = tick;
//printf("done\n");
......@@ -169,6 +169,7 @@ static void scheduleTimer(void)
bool_t timerRunning;
wsfTimerTicks_t time_to_next_expire;
vTimerCallback(NULL);
time_to_next_expire = WsfTimerNextExpiration(&timerRunning);
if(timerRunning) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment