Skip to content
Commit 32029b8d authored by Abram Early's avatar Abram Early Committed by Anas Nashif
Browse files

modbus: reset wait semaphore before tx



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: default avatarAbram Early <abram.early@gmail.com>
(cherry picked from commit 583f4956)
parent 02352b35
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment