Reset retry counter after valid frame to be conform with M-Bus
documentation
This commit is contained in:
parent
7a83f7931d
commit
5467679f66
@ -1672,6 +1672,7 @@ mbus_sendrecv_request(mbus_handle *handle, int address, mbus_frame *reply, int m
|
||||
|
||||
if (result == MBUS_RECV_RESULT_OK)
|
||||
{
|
||||
retry = 0;
|
||||
mbus_purge_frames(handle);
|
||||
}
|
||||
else if (result == MBUS_RECV_RESULT_TIMEOUT)
|
||||
|
Loading…
x
Reference in New Issue
Block a user