Merge branch 'el737' into amorsim

Port the fix to the el737 driver into this branch
This commit is contained in:
2017-08-14 14:53:35 +02:00

View File

@ -57,7 +57,7 @@
/* dset functions */ /* dset functions */
static long el737_init_record(struct scalerRecord *psr, CALLBACK *pcallback); static long el737_init_record(struct scalerRecord *psr, CALLBACK *pcallback);
static long el737_reset(scalerRecord *psr); 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_write_preset(scalerRecord *psr, int signal, unsigned long val);
static long el737_arm(scalerRecord *psr, int val); static long el737_arm(scalerRecord *psr, int val);
static long el737_done(scalerRecord *psr); static long el737_done(scalerRecord *psr);
@ -238,14 +238,14 @@ static long el737_reset(scalerRecord *psr)
return 0; return 0;
} }
static long el737_read(scalerRecord *psr, unsigned long *val) static long el737_read(scalerRecord *psr, epicsUInt32 *val)
{ {
unsigned int i; unsigned int i;
EL737priv *priv; EL737priv *priv;
priv = (EL737priv *)psr->dpvt; priv = (EL737priv *)psr->dpvt;
for(i = 0; i < NCOUNT; i++){ for(i = 0; i < NCOUNT; i++){
val[i] = priv->values[i]; val[i] = (epicsUInt32)priv->values[i];
} }
return 0; return 0;