Skip to content

fix: strip space padding from the structured order code - #949

Open
gijzelaerr wants to merge 1 commit into
masterfrom
fix/order-code-trailing-space
Open

gijzelaerr wants to merge 1 commit into
masterfrom
fix/order-code-trailing-space

Conversation

@gijzelaerr

Copy link
Copy Markdown
Owner

The S7-1200/1500 order code field in SZL 0x0011 is space padded, and only NUL bytes were stripped, so get_order_code returned 6ES7 212-1BE40-0XB0 with a trailing space. The flat S7-300 parser already strips both. Reported in #919.

The S7-1200/1500 order code field is space padded, and only NUL bytes
were stripped, so get_order_code returned "6ES7 212-1BE40-0XB0 " with a
trailing space. The flat S7-300 parser already strips both.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant