Switched to new SICS logging system

This commit is contained in:
2016-02-17 16:44:53 +01:00
parent 3ec4658208
commit 972e191795
17 changed files with 5 additions and 21 deletions

5
sps.c
View File

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