Added AMOR detector tower special pmac motors: working now
This commit is contained in:
@@ -394,7 +394,12 @@ asynStatus NanotecAxis::poll(bool *moving)
|
||||
|
||||
pPtr = strchr(reply,'C');
|
||||
pPtr++;
|
||||
posVal = atoi(pPtr);
|
||||
if(pPtr){
|
||||
posVal = atoi(pPtr);
|
||||
} else {
|
||||
errlogPrintf("Invalid response %s for #C received for axis %d\n", reply, axisNo_);
|
||||
return asynError;
|
||||
}
|
||||
|
||||
//errlogPrintf("Axis %d, reply %s, position %d\n", axisNo_, reply, posVal);
|
||||
setDoubleParam(pC_->motorPosition_, (double)posVal);
|
||||
@@ -408,7 +413,12 @@ asynStatus NanotecAxis::poll(bool *moving)
|
||||
|
||||
pPtr = strchr(reply,'$');
|
||||
pPtr++;
|
||||
statVal = atoi(pPtr);
|
||||
if(pPtr) {
|
||||
statVal = atoi(pPtr);
|
||||
} else {
|
||||
errlogPrintf("Invalid response %s for #$ received for axis %d\n", reply, axisNo_);
|
||||
return asynError;
|
||||
}
|
||||
//errlogPrintf("Axis %d, reply %s, statVal = %d\n",
|
||||
// axisNo_, reply, statVal);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user