diff --git a/opc.js b/opc.js index 8028c17..842bebc 100644 --- a/opc.js +++ b/opc.js @@ -12,7 +12,7 @@ class OPC { value = variableNameOrConfig.value; min = variableNameOrConfig.min ?? min; max = variableNameOrConfig.max ?? max; - step = variableNameOrConfig ?? step; + step = variableNameOrConfig.step ?? step; label = variableNameOrConfig.label; description = variableNameOrConfig.description; } else {