prev. value fields not initialized in init_record

Bug #546991 reported by mdavidsaver
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EPICS Base
Fix Released
Undecided
mdavidsaver

Bug Description

It looks like none of the previous value fields (MLST, ALST, LALM, OVAL, ORBV, ...) get initialized for any recordtype. This is a problem if a device support init_record() modifies VAL, RVAL, or RBV.

I encountered this problem with a bo record. init_record() sets VAL to 1 while MLST remains 0. Later when VAL is set back to 0 no monitor will be posted since VAL==MLST.

The attached patch sets all such fields that I could find, but needs review.

Tags: rec

Related branches

Revision history for this message
mdavidsaver (mdavidsaver) wrote :
Revision history for this message
mdavidsaver (mdavidsaver) wrote :

same patch without Git header...

Andrew Johnson (anj)
tags: added: rec
removed: db
Changed in epics-base:
assignee: nobody → mdavidsaver (mdavidsaver)
status: New → Fix Committed
Andrew Johnson (anj)
Changed in epics-base:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.