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) ...@@ -133,7 +133,7 @@ static void vTimerCallback(xTimerHandle pxTimer)
{ {
//printf("wake\n"); //printf("wake\n");
int tick = xTaskGetTickCount(); int tick = xTaskGetTickCount();
printf("WsfTimerUpdate(%d)\n", tick - lasttick); //printf("WsfTimerUpdate(%d)\n", tick - lasttick);
WsfTimerUpdate(tick - lasttick); WsfTimerUpdate(tick - lasttick);
lasttick = tick; lasttick = tick;
//printf("done\n"); //printf("done\n");
...@@ -169,6 +169,7 @@ static void scheduleTimer(void) ...@@ -169,6 +169,7 @@ static void scheduleTimer(void)
bool_t timerRunning; bool_t timerRunning;
wsfTimerTicks_t time_to_next_expire; wsfTimerTicks_t time_to_next_expire;
vTimerCallback(NULL);
time_to_next_expire = WsfTimerNextExpiration(&timerRunning); time_to_next_expire = WsfTimerNextExpiration(&timerRunning);
if(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