- Fix to various drivers due to changes in rs232controller
- hkl now searches psi in .5 steps - first point of fastscan is driven normally
This commit is contained in:
13
sps.c
13
sps.c
@@ -62,6 +62,7 @@
|
||||
/* configure terminators */
|
||||
SerialATerm(&self->pData, "1\r\n");
|
||||
SerialSendTerm(&self->pData,"\r\n");
|
||||
SerialConfig(&self->pData,5000);
|
||||
|
||||
return 1;
|
||||
}
|
||||
@@ -207,8 +208,8 @@
|
||||
}
|
||||
|
||||
/* decode the reply into the Byte array */
|
||||
pPtr = pBueffel;
|
||||
if(*pPtr != 'R')
|
||||
pPtr = strchr(pBueffel,'R');
|
||||
if(pPtr == NULL)
|
||||
{
|
||||
return -2;
|
||||
}
|
||||
@@ -300,8 +301,8 @@
|
||||
}
|
||||
|
||||
/* decode the reply into the Byte array */
|
||||
pPtr = pBueffel;
|
||||
if(*pPtr != 'R')
|
||||
pPtr = strchr(pBueffel,'R');
|
||||
if(pPtr == NULL)
|
||||
{
|
||||
return -2;
|
||||
}
|
||||
@@ -402,8 +403,8 @@
|
||||
}
|
||||
|
||||
/* decode the result */
|
||||
pPtr = pBueffel;
|
||||
if(*pPtr != 'A') /* a silly answer was returned */
|
||||
pPtr = strchr(pBueffel,'A');
|
||||
if(pPtr == NULL) /* a silly answer was returned */
|
||||
{
|
||||
SICSLogWrite("SPS: Silly answer in SPSGetADC",eError);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user