From 983937a52ff9ffe04b3013b51dd240fe8da3f0c5 Mon Sep 17 00:00:00 2001 From: Gabriel Fedel Date: Tue, 11 Feb 2020 12:45:07 +0100 Subject: [PATCH] Fix event record device support with constant INP This fix apply to event record device with constant INP. Now when the event record is proccessed the associated records with the same SCAN setup get triggered correctly, it is not more necessary to set VAL on event record. Fixes lp: #1829770 --- src/std/rec/eventRecord.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/std/rec/eventRecord.c b/src/std/rec/eventRecord.c index a135a3a37..2ba4859a5 100644 --- a/src/std/rec/eventRecord.c +++ b/src/std/rec/eventRecord.c @@ -106,10 +106,11 @@ static long init_record(eventRecord *prec, int pass) recGblInitConstantLink(&prec->siol,DBF_STRING,&prec->sval); } - prec->epvt = eventNameToHandle(prec->val); - if( (pdset=(struct eventdset *)(prec->dset)) && (pdset->init_record) ) status=(*pdset->init_record)(prec); + + prec->epvt = eventNameToHandle(prec->val); + return(status); }