Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix printer state #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

marc92w
Copy link

@marc92w marc92w commented Sep 22, 2022

Fix setting printer state (comparison by state name instead of value) - reported in #52 and #62

Copy link

@denisab85 denisab85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the RFC 8011 standard (refer to page 152), the expected value should be an integer between 3 and 5. The proposed implementation using a string deviates from this standard. To enhance compatibility and adhere to the standard, it would be beneficial to continue supporting integer values. If there's a specific need to parse textual values, perhaps we could implement this feature in a way that both formats are acceptable.

https://datatracker.ietf.org/doc/html/rfc8011#page-152

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.

2 participants