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

[Backport v3.5-branch] modbus: reset wait semaphore before tx #79514

Closed
wants to merge 1 commit into from

Conversation

zephyrbot
Copy link
Collaborator

@zephyrbot zephyrbot commented Oct 7, 2024

Backport 583f495 from #79345.

Fixes #79518

A response returned after a request times out would increment the
semaphore and stay until the next request is made which will immediately
return when k_sem_take is called even before a response is returned. This
will once again have the same problem when the actual response arrives.
So the wait semaphore just needs to be reset before transmitting.

Signed-off-by: Abram Early <[email protected]>
(cherry picked from commit 583f495)
@zephyrbot zephyrbot added the Backport Backport PR and backport failure issues label Oct 7, 2024
@legoabram legoabram closed this Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: modbus Backport Backport PR and backport failure issues
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants