- 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:
koennecke
2005-09-07 13:51:13 +00:00
parent 2fbf256adf
commit c0d84f16d9
10 changed files with 142 additions and 61 deletions

13
sps.c
View File

@@ -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;