You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2023/05/30 15:16:25 UTC

[plc4x] 03/04: fix(plc4go/spi): fix WSTRING production

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 <sr...@apache.org>
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
 		}
 	}