Skip to content

Util 'set_string' function error. #394

@xxBXSD

Description

@xxBXSD

In the latest version (1.2) there is an error in the util.py 'set_string' function. The code does not set the string length in the first byte as required by the Siemens string format. Add the following code to the end of the function to fix the problem:

set the max length of the string in the first byte

bytearray_[byte_index] = max_size

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions