Report object name and parameter on an illegal attempt to set a parameter
This commit is contained in:
4
obpar.c
4
obpar.c
@ -176,7 +176,9 @@ int ObParSet(ObPar * self, char *obname, char *name, float fVal,
|
|||||||
|
|
||||||
/* are we running? */
|
/* are we running? */
|
||||||
if(DevExecLevelRunning(pServ->pExecutor, RUNDRIVE)){
|
if(DevExecLevelRunning(pServ->pExecutor, RUNDRIVE)){
|
||||||
snprintf(pBueffel,sizeof(pBueffel)-1, "ERROR: Cannot change parameter while running");
|
snprintf(pBueffel,sizeof(pBueffel)-1,
|
||||||
|
"ERROR: Cannot change %s.%s parameter while running",
|
||||||
|
obname, name);
|
||||||
SCWrite(pCon, pBueffel, eError);
|
SCWrite(pCon, pBueffel, eError);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user