Merge branch 'master' into rhel7
This commit is contained in:
@ -124,7 +124,11 @@ static void epicsDataCallback(struct event_handler_args args)
|
||||
switch(priv->node->value.dataType){
|
||||
case HIPTEXT:
|
||||
free(priv->node->value.v.text);
|
||||
priv->node->value.v.text = strdup((char *)args.dbr);
|
||||
if(args.type == DBR_STRING){
|
||||
priv->node->value.v.text = strdup((char *)args.dbr);
|
||||
} else if(args.type == DBR_CHAR) {
|
||||
priv->node->value.v.text = strndup((char *)args.dbr,args.count);
|
||||
}
|
||||
break;
|
||||
case HIPINT:
|
||||
priv->node->value.v.intValue = *(int *)args.dbr;
|
||||
@ -163,7 +167,11 @@ static int epicsSubscribePV(void *message, void *userData)
|
||||
priv = (pEpicsPriv)message;
|
||||
switch(priv->node->value.dataType){
|
||||
case HIPTEXT:
|
||||
subType = DBR_STRING;
|
||||
if(ca_field_type(priv->pvchid) == DBR_CHAR){
|
||||
subType = DBR_CHAR;
|
||||
} else {
|
||||
subType = DBR_STRING;
|
||||
}
|
||||
break;
|
||||
case HIPINT:
|
||||
case HIPINTAR:
|
||||
|
@ -272,6 +272,11 @@ static int TASHeader(pScanData self)
|
||||
pTAS->tasPar[BX]->fVal, pTAS->tasPar[BY]->fVal,
|
||||
pTAS->tasPar[BZ]->fVal);
|
||||
|
||||
sVar = FindCommandData(pServ->pSics, "ProposalID", "SicsVariable");
|
||||
if (sVar != NULL) {
|
||||
fprintf(self->fd,"PARAM: ProposalID=%s\n",sVar->text);
|
||||
}
|
||||
|
||||
/*
|
||||
* write mupad stuff if available
|
||||
*/
|
||||
|
Reference in New Issue
Block a user