Skip to content

asyn enum fix

Andreas Persson requested to merge asyn-enum-fix into main

This bug was discovered by @tomaszbrys

asynPortDriver::readEnum() should return asynError for parameters where the enum strings are not provided by the driver. Otherwise, strings specified in database fields (ZNAM, ONAM, ZRST, ONST, ...) are overridden by empty strings from readEnum().

This MR also reorganizes the readEnum code a bit. The loop that iterates over the enum strings is moved to the end of the function.

Edited by Andreas Persson

Merge request reports

Loading