Skip to content

Conversation

@zephyrbot
Copy link

@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 <abram.early@gmail.com>
(cherry picked from commit 583f495)
@zephyrbot zephyrbot added Backport Backport PR and backport failure issues area: modbus labels Oct 7, 2024
@zephyrbot zephyrbot requested a review from jfischer-no October 7, 2024 16:14
@henrikbrixandersen henrikbrixandersen merged commit ee4c40c into v3.6-branch Oct 22, 2024
9 checks passed
@henrikbrixandersen henrikbrixandersen deleted the backport-79345-to-v3.6-branch branch October 22, 2024 18:41
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.

6 participants