- Fixed a minor problem in poldizug

This commit is contained in:
koennecke
2009-03-09 08:28:35 +00:00
parent d158b33326
commit 393d103e9b
3 changed files with 16 additions and 1 deletions

View File

@ -15,6 +15,10 @@
Revised: Mark Koennecke, October 2000 Revised: Mark Koennecke, October 2000
Revised: Mark Koennecke, July 2001 Revised: Mark Koennecke, July 2001
This is defunct as of 2009.
Mark Koennecke, March 2009
----------------------------------------------------------------------------*/ ----------------------------------------------------------------------------*/
#include <stdlib.h> #include <stdlib.h>
#include <assert.h> #include <assert.h>

View File

@ -520,7 +520,7 @@ int MakePoldiReiss(SConnection * pCon, SicsInterp * pSics,
self->maxPos = atof(argv[7]); self->maxPos = atof(argv[7]);
self->iMode = FORCE; self->iMode = FORCE;
self->state = OFF; self->state = OFF;
self->velocity = 10; self->velocity = 2;
PZRCommand(self->controller, pCon, "wr mode 0\r\n", reply, 79); PZRCommand(self->controller, pCon, "wr mode 0\r\n", reply, 79);
AddCommand(pSics, argv[1], PoldiReissAction, killPoldiZug, self); AddCommand(pSics, argv[1], PoldiReissAction, killPoldiZug, self);

View File

@ -555,6 +555,9 @@ static HistInt *SinqHttpSubSample(pHistDriver self, SConnection * pCon,
status = sinqHttpGet(pPriv, command); status = sinqHttpGet(pPriv, command);
if (status != 1) { if (status != 1) {
if(pCon != NULL){
SCPrintf(pCon,eError,"ERROR: subsampling failed with %s", pPriv->hmError);
}
return NULL; return NULL;
} }
@ -695,3 +698,11 @@ pHistDriver CreateSinqHttpDriver(pStringDict pOption)
return pNew; return pNew;
} }
/*-------------------------------------------------------------------------*/
int isSINQHTTP(pHistDriver self){
if(self->Start == SinqHttpStart){
return 1;
} else {
return 0;
}
}