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

Improvement: Add ifdef to Modbus server error message printing #563

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

dalathegreat
Copy link
Owner

What

This PR changes to Modbus RTU server only prints error messages incase user has extra USB debugging enabled

Why

Serial printing is slow and takes CPU resources. We raise an event already if we have RTU missing.

How

Now we only get Modbus RTU debug info via serial, incase the DEBUG_VIA_USB flag is set.

Copy link
Collaborator

@amarofarinha amarofarinha left a comment

Choose a reason for hiding this comment

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

LGTM

@dalathegreat dalathegreat merged commit 14e9e2a into main Oct 28, 2024
60 checks passed
@dalathegreat dalathegreat deleted the improvement/eModbus-update branch October 28, 2024 20:05
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