caput tool won't write to mbbo w/o state strings

Reported by Ralph Lange on 2010-09-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EPICS Base
Low
Ralph Lange

Bug Description

Observed by Heinz Junkes <junkes_AT_fhi-berlin.mpg.de>:

If a mbbo record only defines the state values, but no state strings, the caput command line utility is not able to write to the record's value.

While this configuration is certainly unusual, it is legal, and caput should be able to write to such records.

Background: caput first reads the ENUM choice set from the record. It exits with an error message if the string set point is not found in the choice set, or if the numerical index set point is larger than the number of choices. While the string behaviour seems reasonable, the numerical put should just print a warning and still write the value to allow writing to such records.

Related branches

Ralph Lange (ralph-lange) wrote :

Here's the fix that will be applied to base.

Ralph Lange (ralph-lange) wrote :

Fix committed as revision 12122.

Changed in epics-base:
status: New → Fix Committed
Andrew Johnson (anj) on 2010-11-24
Changed in epics-base:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers