Switched to new SICS logging system
This commit is contained in:
5
sps.c
5
sps.c
@@ -30,7 +30,6 @@
|
||||
#include "bit.h"
|
||||
#include "sps.i"
|
||||
#include "sps.h"
|
||||
#include "commandlog.h"
|
||||
|
||||
/*--------------------- some internal defines ----------------------------*/
|
||||
#define SPSOFFLINE -10
|
||||
@@ -108,7 +107,7 @@ static int SPSCommand(pSPS self, char *pCommand, char *pReply,
|
||||
default:
|
||||
self->iLastError = iRet;
|
||||
getRS232Error(iRet,pError,131);
|
||||
WriteToCommandLog("SYS: SPS-TROUBLE:", pError);
|
||||
Log(ERROR,"dev", "SPS-TROUBLE: %s", pError);
|
||||
closeRS232(rs232);
|
||||
iRet = initRS232(rs232);
|
||||
if (iRet == 0) {
|
||||
@@ -444,7 +443,7 @@ int SPSGetADC(pSPS self, int iWhich, int *iValue)
|
||||
/* decode the result */
|
||||
pPtr = strchr(pBueffel, 'A');
|
||||
if (pPtr == NULL) { /* a silly answer was returned */
|
||||
SICSLogWrite("SPS: Silly answer in SPSGetADC", eError);
|
||||
Log(ERROR,"dev","%s:%s", "SPS: Silly answer in SPSGetADC",pBueffel);
|
||||
return 0;
|
||||
}
|
||||
pPtr++;
|
||||
|
||||
Reference in New Issue
Block a user