From e56d4c23377856700b02bb62d38cb5d337c62c7b Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Wed, 24 Mar 2010 13:21:38 -0500 Subject: [PATCH] The monitor last value field needs to be initialized. Device support init_record is allowed to set VAL to 1. If uninitialized then mlst is 0. During the first process() this will miss a monitor if VAL is changed to 0, and cause a spurious monitor if VAL remains 1. - mdavidsaver --- src/rec/boRecord.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rec/boRecord.c b/src/rec/boRecord.c index b0c8897e5..b66567f69 100644 --- a/src/rec/boRecord.c +++ b/src/rec/boRecord.c @@ -171,6 +171,7 @@ static long init_record(boRecord *prec,int pass) prec->udf = FALSE; } else if (status==2) status=0; } + prec->mlst = prec->val; /* convert val to rval */ if ( prec->mask != 0 ) { if(prec->val==0) prec->rval = 0;