Verified Commit ac5631e6 authored by schneider's avatar schneider Committed by Rahix
Browse files

fix(ble): Regularly update WSF timers

parent 425d47cf
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment