EL737 Increase timeout
The EL737 module micht give rise to a failure if the counterbox does not reply withing 1s. This is the case at FOCUS. With this commit the timeout is increased to 2s.
This commit is contained in:
@ -232,7 +232,7 @@ static long el737_init_record(scalerRecord *psr, CALLBACK *pcallback)
|
|||||||
}
|
}
|
||||||
pasynOctetSyncIO->setOutputEos(priv->asynContext,"\r",strlen("\r"));
|
pasynOctetSyncIO->setOutputEos(priv->asynContext,"\r",strlen("\r"));
|
||||||
pasynOctetSyncIO->setInputEos(priv->asynContext,"\r",strlen("\r"));
|
pasynOctetSyncIO->setInputEos(priv->asynContext,"\r",strlen("\r"));
|
||||||
priv->asynContext->timeout = 1.0;
|
priv->asynContext->timeout = 2.0;
|
||||||
strcpy(command,"RMT 1");
|
strcpy(command,"RMT 1");
|
||||||
pasynOctetSyncIO->writeRead(priv->asynContext, command, strlen(command),
|
pasynOctetSyncIO->writeRead(priv->asynContext, command, strlen(command),
|
||||||
reply,sizeof(reply), 1.,&out,&in,&reason);
|
reply,sizeof(reply), 1.,&out,&in,&reason);
|
||||||
|
Reference in New Issue
Block a user