From 5467679f667ed03c30cf65ed9635daae85fa7e11 Mon Sep 17 00:00:00 2001 From: Stefan Wahren Date: Thu, 19 Jul 2012 21:08:07 +0200 Subject: [PATCH] Reset retry counter after valid frame to be conform with M-Bus documentation --- mbus/mbus-protocol-aux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mbus/mbus-protocol-aux.c b/mbus/mbus-protocol-aux.c index fc9a147..ef607ae 100755 --- a/mbus/mbus-protocol-aux.c +++ b/mbus/mbus-protocol-aux.c @@ -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)