prev. value fields not initialized in init_record
Bug #546991 reported by
mdavidsaver
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.
Related branches
lp:~mdavidsaver/epics-base/rec-init
- Andrew Johnson: Approve
- EPICS Core Developers: Pending requested
-
Diff: 239 lines (+56/-4)15 files modifiedsrc/rec/aSubRecord.c (+3/-0)
src/rec/aiRecord.c (+4/-0)
src/rec/aoRecord.c (+5/-0)
src/rec/biRecord.c (+3/-0)
src/rec/boRecord.c (+5/-0)
src/rec/calcoutRecord.c (+5/-0)
src/rec/longinRecord.c (+3/-0)
src/rec/longoutRecord.c (+3/-0)
src/rec/mbbiDirectRecord.c (+3/-0)
src/rec/mbbiRecord.c (+3/-0)
src/rec/mbboDirectRecord.c (+4/-0)
src/rec/mbboRecord.c (+4/-0)
src/rec/stringinRecord.c (+4/-2)
src/rec/stringoutRecord.c (+4/-2)
src/rec/subRecord.c (+3/-0)
tags: |
added: rec removed: db |
Changed in epics-base: | |
assignee: | nobody → mdavidsaver (mdavidsaver) |
status: | New → Fix Committed |
Changed in epics-base: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
same patch without Git header...