epics-modules / mrfioc2

EPICS driver for Micro Research Finland event timing system devices
http://epics-modules.github.io/mrfioc2/
Other
8 stars 30 forks source link

Fix the device support for EVG Run Mode #2

Closed aderbenev closed 9 years ago

aderbenev commented 9 years ago

By RRM, write_mbbo device support routine returns the following values: 0: Success. Other: Error.

The default return value for write_mbbo_runMode function is 2, which causes an error to be reported regardless of write operation succeeding or not. Changing the default return value to 0 fixes the issue.

read_mbbi device support routine returns a value of 2 if no conversion is performed, hence it is unchanged.

mdavidsaver commented 9 years ago

Ok, this is a clear bug as mbboRecord support returning 2 from init_record(), but not process() (as opposed to mbbiRecord where this situation is reversed).