- workaround for infinite echo loop sea <-> sics

- ".CurrentValue" removed in evcontroller.c
This commit is contained in:
zolliker
2006-09-12 15:45:42 +00:00
parent 98a642d7ae
commit 87d81cf474
2 changed files with 8 additions and 2 deletions

View File

@ -1102,8 +1102,11 @@ static void ErrReport(pEVControl self)
iRet = EVCGetPos(self,pCon,&fPos); iRet = EVCGetPos(self,pCon,&fPos);
if(iRet) if(iRet)
{ {
/*
sprintf(pBueffel,"%s.%s = %g",self->pName,"CurrentValue", fPos); sprintf(pBueffel,"%s.%s = %g",self->pName,"CurrentValue", fPos);
SCWrite(pCon,pBueffel,eValue); SCWrite(pCon,pBueffel,eValue);
*/
SCPrintf(pCon, eValue, "%s = %g", self->pName, fPos);
return 1; return 1;
} }
return 0; return 0;

View File

@ -19,6 +19,7 @@ M. Zolliker July 04
#include "status.h" #include "status.h"
#include "servlog.h" #include "servlog.h"
#include "site.h" #include "site.h"
#include "commandlog.h"
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
#define INTERRUPTMODE 0 #define INTERRUPTMODE 0
#define ACCESSCODE 1 #define ACCESSCODE 1
@ -242,8 +243,10 @@ static int RemServerTask(void *data) {
rc = &remserver->rc[isUser]; rc = &remserver->rc[isUser];
if (RemRead(rc, 0) <= 0) continue; if (RemRead(rc, 0) <= 0) continue;
/* printf("< %s\n", buf); */ if (strstr(rc->line, " ") == rc->line) {
WriteToCommandLog("REMOB>", "infinite echo loop detected");
continue;
}
if (isUser == 0) { if (isUser == 0) {
if (RemHandle(remserver)) { /* handle drivstat messages */ if (RemHandle(remserver)) { /* handle drivstat messages */
continue; continue;