diff --git a/plc4go/protocols/opcua/readwrite/model/PascalString.go b/plc4go/protocols/opcua/readwrite/model/PascalString.go index 76869c092f1..901e444ff58 100644 --- a/plc4go/protocols/opcua/readwrite/model/PascalString.go +++ b/plc4go/protocols/opcua/readwrite/model/PascalString.go @@ -112,7 +112,7 @@ func (m *_PascalString) GetLengthInBits(ctx context.Context) uint16 { // Optional Field (stringValue) if m.StringValue != nil { - lengthInBits += -1 + lengthInBits += 0 } return lengthInBits