- Improvements to the chooper driver for the SANS2 chopper

- Fixes to the new counter and motor drivers
- Updated Linux makefiles to linux_def
This commit is contained in:
cvs
2003-07-14 11:56:55 +00:00
parent 3a45c3051d
commit 0e420a12f7
7 changed files with 83 additions and 35 deletions

4
psi.c
View File

@ -160,7 +160,7 @@ static pMotor CreatePsiMotor(SConnection *pCon, int argc, char *argv[]){
return NULL;
}
} else if(strcmp(argv[1],"ecb") == 0){
pDriver = (MotorDriver *)CreateECBMotor(pCon,argc-1,&argv[2]);
pDriver = (MotorDriver *)CreateECBMotor(pCon,argc-2,&argv[2]);
if(!pDriver){
return NULL;
}
@ -198,8 +198,8 @@ static pCounterDriver CreatePsiCounterDriver(SConnection *pCon,
"ERROR: insufficient no of arguments to create ECB counter",
eError);
return NULL;
pNew = MakeECBCounter(argv[3]);
}
pNew = MakeECBCounter(argv[3]);
}
return pNew;
}