From 124aa97cd6c57f8d7bdfd8a008762b407b7f84e2 Mon Sep 17 00:00:00 2001 From: koennecke Date: Mon, 14 Aug 2017 14:52:04 +0200 Subject: [PATCH] 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. --- sinqEPICSApp/src/devScalerEL737.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sinqEPICSApp/src/devScalerEL737.c b/sinqEPICSApp/src/devScalerEL737.c index 8471bdb..ca78a58 100644 --- a/sinqEPICSApp/src/devScalerEL737.c +++ b/sinqEPICSApp/src/devScalerEL737.c @@ -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;