Implement task priorities and message queues
This commit is contained in:
@ -165,7 +165,7 @@ static int StartOscillation(pOscillator self, SConnection * pCon)
|
||||
*/
|
||||
snprintf(pBueffel,sizeof(pBueffel),"Oscillate-%s", self->pMot->name);
|
||||
self->taskID = TaskRegisterN(pServ->pTasker,pBueffel,
|
||||
OscillationTask, NULL, NULL, self, 10);
|
||||
OscillationTask, NULL, NULL, self, TASK_PRIO_HIGH);
|
||||
if (self->taskID < 0) {
|
||||
SCWrite(pCon, "ERROR: failed to start oscillation task", eError);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user