- allow parameter changes while running
This commit is contained in:
@@ -971,12 +971,15 @@ static void ErrReport(pEVControl self)
|
|||||||
{
|
{
|
||||||
ObPar *pPar = NULL;
|
ObPar *pPar = NULL;
|
||||||
char pBueffel[512];
|
char pBueffel[512];
|
||||||
int iRet;
|
int iRet, savedStatus;
|
||||||
|
|
||||||
assert(self);
|
assert(self);
|
||||||
assert(pCon);
|
assert(pCon);
|
||||||
|
|
||||||
|
savedStatus = GetStatus(); /* fool status check in ObParSet (avoid "Cannot change parameter while running" message */
|
||||||
|
SetStatus(eBatch);
|
||||||
iRet = ObParSet(self->pParam,self->pName,name,fVal,pCon);
|
iRet = ObParSet(self->pParam,self->pName,name,fVal,pCon);
|
||||||
|
SetStatus(savedStatus);
|
||||||
if(!iRet)
|
if(!iRet)
|
||||||
{
|
{
|
||||||
return iRet;
|
return iRet;
|
||||||
|
|||||||
Reference in New Issue
Block a user