epics-modules / autosave

APS BCDA synApps module: autosave
https://epics-modules.github.io/autosave/
Other
8 stars 31 forks source link

Fix restore of long strings on IOC startup #27

Closed smarsching closed 2 years ago

smarsching commented 4 years ago

Autosave had a bug that made it impossible to restore the value of an lso record, when pointing to recordName.VAL$. The restore operation would fail with "No digits to convert". It would work when using recordName.VAL, but in this case the string would be truncated to 39 characters.

This patch fixes this problem, so that now recordName.VAL$ can be used in order to save & restore long strings. This patch only affects the restore operation during IOC startup, not manual restores. I have not tested it, but it might be that manual restores already worked because they use an entirely different code path.