Skip to content
Commit 0828f36f authored by Lars Bensmann's avatar Lars Bensmann
Browse files

mb2hal: call modbus_flush() on transaction error

When a communication error happens and a transaction is just partially
read the modbus link can get out of sync. The next transaction gets the
unconsumed data from the transaction before and so on and the link does
not recover form this. modbus_flush() prevents this behaviour.
parent 37db4661
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment