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 modbus error response handling #702

Merged
merged 1 commit into from
May 28, 2024

Conversation

martinlukas84
Copy link
Contributor

@martinlukas84 martinlukas84 commented May 28, 2024

Describe your changes

Fixed incorrect modbus error handling.
Up to now the wrong index was taken to get the exception code out of the response buffer.
This pull request will fix it.

Issue ticket number and link

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • I read the contribution documentation and made sure that my changes meet its requirements

…ION CODE>.

This structure is always the same independent of the request.
Up to now the wrong index was taken to get the exception code out of the buffer.
This is now fixed.

Signed-off-by: Martin Lukas <[email protected]>
@corneliusclaussen corneliusclaussen merged commit cd5e64e into main May 28, 2024
5 checks passed
@martinlukas84 martinlukas84 deleted the bugfix/tiny_modbus_error_handling branch May 28, 2024 08:59
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