Reset retry counter after valid frame to be conform with M-Bus

documentation
This commit is contained in:
Stefan Wahren 2012-07-19 21:08:07 +02:00
parent 7a83f7931d
commit 5467679f66

View File

@ -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)