Skip to content

feat(plc4j/modbus): Fix discrete input handling when processing response #2055

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

IsmoLeszczynski
Copy link
Contributor

@IsmoLeszczynski IsmoLeszczynski commented Apr 9, 2025

Fix for #2054. Like the Coils, Discrete Inputs are also handled like single bits. The current implementation tried to handle them like Registers, which caused issues when the response consisted of a single byte instead of two. This solution merges the handling of Coils and Discrete Inputs as they're technically identical in this respect.

Fix Discrete Input handling when processing response
@IsmoLeszczynski IsmoLeszczynski changed the title Fix discrete input handling when processing response feat(plc4j/modbus): Fix discrete input handling when processing response Apr 9, 2025
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