Skip to content

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

Merged
gijzelaerr merged 1 commit into
masterfrom
fix/order-code-trailing-space
Oct 20, 2026
Merged

gijzelaerr merged 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.
@gijzelaerr
gijzelaerr merged commit 850cb0f into master Oct 20, 2026
20 checks passed
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