From 194784d781abb142d2650da51ce6628914591d0d Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Mon, 13 Jan 1997 15:56:31 +0000 Subject: [PATCH] get rid of call to devGpibLib_setPvSevr --- src/dev/devSysmon.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/dev/devSysmon.c b/src/dev/devSysmon.c index 1064d42d3..6c089f691 100644 --- a/src/dev/devSysmon.c +++ b/src/dev/devSysmon.c @@ -58,6 +58,9 @@ * ... * * $Log$ + * Revision 1.10 1995/11/29 14:35:12 mrk + * Changes for replacing default.dctsdr by all ascii files + * * Revision 1.9 1995/01/18 16:38:03 winans * added the '0x' in front of the hex input and outputs in the report function. * @@ -326,6 +329,19 @@ DSET_SYSMON devMbbiSysmon={ SysmonReadMbbi }; + +static void setPvSevr(pPv, status, severity) +struct dbCommon *pPv; +unsigned short severity; +short status; +{ + if (severity > pPv->nsev ) + { + pPv->nsta = status; + pPv->nsev = severity; + } +} + /***************************************************************************** * *****************************************************************************/ @@ -637,7 +653,7 @@ STATIC long SysmonReadAi(struct aiRecord *pRecord) case 0x80: pRecord->val = 50; break; case 0x00: pRecord->val = 55; break; default: - devGpibLib_setPvSevr(pRecord,MAJOR_ALARM,INVALID_ALARM); + setPvSevr(pRecord,MAJOR_ALARM,INVALID_ALARM); return(0); } pRecord->udf = FALSE;