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

Sc16is7x2 code quality #1100

Closed
wants to merge 3 commits into from

Conversation

kaarew
Copy link
Contributor

@kaarew kaarew commented Dec 15, 2024

Some minor changes for better code quality.

@ctacke
Copy link
Contributor

ctacke commented Jan 8, 2025

I originally merged this in, but it broke the RS485 comms. It wasn't obvious why, so I cherry picked a little of it (mostly docs) and applied some other changes on top of it (e.g. changing to CircularBuffer), so unfortunately we may have lost some fixes and improvements that you might have made. I'd love to not lose those, but it will require another pass at differencing the two and making sure that 485 remains working.

@kaarew
Copy link
Contributor Author

kaarew commented Jan 8, 2025

OK. Sorry about that. I'll follow this up when I have time.
Did it break RS485 at compile time? (Or do you have some RS485 test circuit that broke?)

@ctacke
Copy link
Contributor

ctacke commented Jan 10, 2025

It broke it at run time, which is why it got merged, then rolled back a few days later after both I and a customer lost comms with RS485 devices. Basically comms with any Modbus RTU device went sideways with bus timeouts

@ctacke ctacke closed this Jan 10, 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.

2 participants