diff --git a/devser.c b/devser.c index 1a0fe6c7..6ac0f16d 100644 --- a/devser.c +++ b/devser.c @@ -97,7 +97,7 @@ static double nextTime(double due, static DevAction *DevNextAction(DevSer * devser) { -/* the action queue is primarily ordered by priority (high prioirty first), +/* the action queue is primarily ordered by priority (high priority first), * within one priority by usage (last used action at end) */ DevPrio prio; @@ -312,8 +312,12 @@ void DevDebugMode(DevSer * devser, int steps) static void DevReset(DevSer * devser) { + /* DevFreeActionList(devser->actions); + devser->actions = NULL; + */ DevFreeActionList(devser->toKill); + devser->toKill = NULL; if (devser->killCurrent) { if (devser->current->kill != NULL) { devser->current->kill(devser->current); @@ -397,6 +401,7 @@ int DevSchedule(DevSer * devser, void *actionData, prio = NumberOfPRIO - 1; } + /* find similar action and the point, where we have to insert */ for (ptr2prev = &devser->actions, action = devser->actions; action != NULL; action = action->next) {