- Cleaned all old dtatus setting code
This commit is contained in:
11
interface.c
11
interface.c
@@ -240,7 +240,6 @@ static int DriveTaskFunc(void *data)
|
||||
} else {
|
||||
ExeInterest(pServ->pExecutor,taskData->name, "finished with problem");
|
||||
}
|
||||
SetStatus(eEager);
|
||||
return 0;
|
||||
}
|
||||
/*--------------------------------------------------------------------------*/
|
||||
@@ -370,16 +369,6 @@ static int CountTaskFunc(void *data)
|
||||
assert(taskData != NULL);
|
||||
|
||||
status = taskData->pCount->CheckCountStatus(taskData->obj,taskData->pCon);
|
||||
if(status == HWBusy) {
|
||||
SetStatus(eCounting);
|
||||
return 1;
|
||||
} else if(status == HWNoBeam){
|
||||
SetStatus(eOutOfBeam);
|
||||
return 1;
|
||||
} else if(status == HWPause){
|
||||
SetStatus(ePaused);
|
||||
return 1;
|
||||
}
|
||||
|
||||
taskData->pCount->TransferData(taskData->obj, taskData->pCon);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user