Skip to content
Snippets Groups Projects
Commit 44d8adf6 authored by schneider's avatar schneider Committed by schneider
Browse files

fix(ble): Do not try to schedule 0 tick WSF timers

parent 69775a15
No related branches found
No related tags found
No related merge requests found
#include "modules/log.h"
#include "fs_util.h"
#include "wsf_types.h"
#include "wsf_buf.h"
#include "wsf_trace.h"
......@@ -162,6 +161,13 @@ static void scheduleTimer(void)
if (timerRunning) {
//printf("time_to_next_expire = %d\n", time_to_next_expire);
//printf("change period\n");
/* We need to make sure not to schedule a 0 ticks timer.
* Maybe it would also be enough to simply call the dispatcher
* in this case... */
if (time_to_next_expire == 0) {
time_to_next_expire = 1;
}
if (timerWakeup != NULL) {
xTimerChangePeriod(
timerWakeup,
......
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