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
Please register or sign in to comment