- Connections write timeouts were incorrectly handled in asynnetc. Fixed.
- Implemented the desired run/drive behaviour: drive waits for what it started run starts, and success waits for everything to finish. This required changes to a lot of files. - Fixed a bug in remob which supressed required messages
This commit is contained in:
13
counter.c
13
counter.c
@ -115,7 +115,7 @@ static int StartCount(void *pData, SConnection * pCon)
|
||||
} else {
|
||||
iRet = self->pDriv->GetError(self->pDriv, &iErr, pError, 79);
|
||||
sprintf(pBueffel, "WARNING: %s ", pError);
|
||||
SCWrite(pCon, pBueffel, eError);
|
||||
SCWrite(pCon, pBueffel, eLog);
|
||||
iRet = self->pDriv->TryAndFixIt(self->pDriv, iErr);
|
||||
if (iRet == COTERM) {
|
||||
SCWrite(pCon, "ERROR: Cannot fix counter problem, aborting",
|
||||
@ -226,7 +226,7 @@ static int CheckCountStatus(void *pData, SConnection * pCon)
|
||||
self->badStatusCount++;
|
||||
iRet = self->pDriv->GetError(self->pDriv, &iErr, pError, 79);
|
||||
sprintf(pBueffel, "WARNING: %s ", pError);
|
||||
SCWrite(pCon, pBueffel, eError);
|
||||
SCWrite(pCon, pBueffel, eLog);
|
||||
iRet = self->pDriv->TryAndFixIt(self->pDriv, iErr);
|
||||
if (iRet == COTERM || self->badStatusCount > 3) {
|
||||
SCWrite(pCon, "ERROR: Cannot fix counter problem, aborting", eError);
|
||||
@ -373,7 +373,7 @@ void DeleteCounter(void *pData)
|
||||
/*-------------------------------------------------------------------------*/
|
||||
int DoCount(pCounter self, float fPreset, SConnection * pCon, int iBlock)
|
||||
{
|
||||
int iRet;
|
||||
int iRet, level;
|
||||
char pBueffel[132];
|
||||
Status eOld;
|
||||
|
||||
@ -392,8 +392,13 @@ int DoCount(pCounter self, float fPreset, SConnection * pCon, int iBlock)
|
||||
/* set Preset */
|
||||
SetCounterPreset(self, fPreset);
|
||||
|
||||
if(iBlock){
|
||||
level = RUNDRIVE;
|
||||
} else {
|
||||
level = RUNRUN;
|
||||
}
|
||||
iRet = StartDevice(GetExecutor(), self->name, self->pDes, self, pCon,
|
||||
fPreset);
|
||||
level, fPreset);
|
||||
if (!iRet) {
|
||||
SetStatus(eOld);
|
||||
SCWrite(pCon, "Counting aborted", eError);
|
||||
|
Reference in New Issue
Block a user