From 92f36d36a020b1df189b09fd8144fd73a00be492 Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Mon, 11 May 1992 14:50:23 +0000 Subject: [PATCH] Remove read at init_record --- src/dev/devAoVmiVme4100.c | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/src/dev/devAoVmiVme4100.c b/src/dev/devAoVmiVme4100.c index dc1b80011..0d8973681 100644 --- a/src/dev/devAoVmiVme4100.c +++ b/src/dev/devAoVmiVme4100.c @@ -32,6 +32,7 @@ * ----------------- * .01 11-11-91 jba Moved set of alarm stat and sevr to macros * .02 03-13-92 jba ANSI C changes + * .03 05-11-92 mrk Remove read at init (device does not support) * ... */ @@ -75,7 +76,6 @@ struct { write_ao, special_linconv}; -void read_ao(); static long init_record(pao) @@ -97,9 +97,9 @@ static long init_record(pao) /* set linear conversion slope*/ pao->eslo = (pao->eguf -pao->egul)/4095.0; - /* call driver so that it configures card */ - read_ao(pao); - return(0); + /* It is not possible to read current value of card */ + /* Tell recSup not to convert */ + return(2); } static long write_ao(pao) @@ -135,15 +135,4 @@ static long special_linconv(pao,after) return(0); } -static void read_ao(pao) -struct aoRecord *pao; -{ - unsigned short value; - struct vmeio *pvmeio = &pao->out.value.vmeio; - - /* get the value from the ao driver */ - vmi4100_read(pvmeio->card,pvmeio->signal,&value); - pao->rbv = pao->rval = value; - return; -}