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

Fixed MODBUS_ERROR_RECOVERY_LINK not working on Windows. #644

Merged
merged 4 commits into from
Aug 17, 2022

Conversation

embeddedmz
Copy link
Contributor

@embeddedmz embeddedmz commented Jul 4, 2022

Fixes issue #643

Otherwise, I don't like how error recovery is coded : if we want to break the loop (e.g. to close the program), we need to disable the error recovery from another thread but it is not a good idea to use the context on many threads. It is best to use a finite number of attempts to ensure that the function does not loop indefinitely. Or just remove the do-while loop !

@cla-bot
Copy link

cla-bot bot commented Jul 4, 2022

We require contributors to sign our Contributor License Agreement. In order for us to review and merge your code, please fill https://forms.gle/5635zjphDo5JEJQSA to get added. Your document will be manually checked by the maintainer. Be patient...

@cla-bot
Copy link

cla-bot bot commented Jul 4, 2022

We require contributors to sign our Contributor License Agreement. In order for us to review and merge your code, please fill https://forms.gle/5635zjphDo5JEJQSA to get added. Your document will be manually checked by the maintainer. Be patient...

@stephane
Copy link
Owner

Added to CLA bot.

src/modbus.c Outdated Show resolved Hide resolved
src/modbus.c Outdated Show resolved Hide resolved
@cla-bot cla-bot bot added the cla-signed label Aug 3, 2022
@embeddedmz
Copy link
Contributor Author

@stephane is it OK now ?

@stephane stephane merged commit 9b679b7 into stephane:master Aug 17, 2022
@stephane
Copy link
Owner

Yes thank you @embeddedmz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants