This is an automated email from the ASF dual-hosted git repository.

sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git

commit c9db23c018a5cfb48a019be0b52b799bfba9510e
Author: Sebastian Rühl <[email protected]>
AuthorDate: Tue May 30 16:58:40 2023 +0200

    fix(plc4go/spi): fix WSTRING production
---
 plc4go/spi/values/PlcValueHandler.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plc4go/spi/values/PlcValueHandler.go 
b/plc4go/spi/values/PlcValueHandler.go
index 563c318a25..127f01bd1d 100644
--- a/plc4go/spi/values/PlcValueHandler.go
+++ b/plc4go/spi/values/PlcValueHandler.go
@@ -407,7 +407,7 @@ func (m DefaultValueHandler) NewPlcValueFromType(valueType 
apiValues.PlcValueTyp
                if !isString {
                        return nil, errors.New("non-string to IEC61131_WSTRING 
conversion not implemented")
                } else {
-                       return NewPlcSTRING(stringValue), nil
+                       return NewPlcWSTRING(stringValue), nil
                }
        }
 

Reply via email to