Fixed a bug in el737_read which had a wrong function signature. May have changed over the years.
This caused every second monitor to be 0. A number type mismatch.
This commit is contained in:
@ -57,7 +57,7 @@
|
||||
/* dset functions */
|
||||
static long el737_init_record(struct scalerRecord *psr, CALLBACK *pcallback);
|
||||
static long el737_reset(scalerRecord *psr);
|
||||
static long el737_read(scalerRecord *psr, unsigned long *val);
|
||||
static long el737_read(scalerRecord *psr, epicsUInt32 *val);
|
||||
static long el737_write_preset(scalerRecord *psr, int signal, unsigned long val);
|
||||
static long el737_arm(scalerRecord *psr, int val);
|
||||
static long el737_done(scalerRecord *psr);
|
||||
@ -238,14 +238,14 @@ static long el737_reset(scalerRecord *psr)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static long el737_read(scalerRecord *psr, unsigned long *val)
|
||||
static long el737_read(scalerRecord *psr, epicsUInt32 *val)
|
||||
{
|
||||
unsigned int i;
|
||||
EL737priv *priv;
|
||||
|
||||
priv = (EL737priv *)psr->dpvt;
|
||||
for(i = 0; i < NCOUNT; i++){
|
||||
val[i] = priv->values[i];
|
||||
val[i] = (epicsUInt32)priv->values[i];
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user