From b674dfcf24e8055fb687a60a4cad2f8bbdca36e4 Mon Sep 17 00:00:00 2001 From: Stefan Wahren Date: Sat, 19 Oct 2013 11:44:37 +0200 Subject: [PATCH] Use new retransmission option and handle member --- bin/mbus-serial-scan.c | 4 ++-- bin/mbus-tcp-scan.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/mbus-serial-scan.c b/bin/mbus-serial-scan.c index 8a935c9..e7babd7 100755 --- a/bin/mbus-serial-scan.c +++ b/bin/mbus-serial-scan.c @@ -21,7 +21,7 @@ int ping_address(mbus_handle *handle, mbus_frame *reply, int address) memset((void *)reply, 0, sizeof(mbus_frame)); - for (i = 0; i <= handle->max_retry; i++) + for (i = 0; i <= handle->max_search_retry; i++) { if (debug) { @@ -126,7 +126,7 @@ main(int argc, char **argv) return 1; } - if (mbus_context_set_option(handle, MBUS_OPTION_MAX_RETRY, retries) == -1) + if (mbus_context_set_option(handle, MBUS_OPTION_MAX_SEARCH_RETRY, retries) == -1) { fprintf(stderr,"Failed to set retry count\n"); return 1; diff --git a/bin/mbus-tcp-scan.c b/bin/mbus-tcp-scan.c index 70ed102..3d96194 100755 --- a/bin/mbus-tcp-scan.c +++ b/bin/mbus-tcp-scan.c @@ -21,7 +21,7 @@ int ping_address(mbus_handle *handle, mbus_frame *reply, int address) memset((void *)reply, 0, sizeof(mbus_frame)); - for (i = 0; i <= handle->max_retry; i++) + for (i = 0; i <= handle->max_search_retry; i++) { if (debug) { @@ -112,7 +112,7 @@ main(int argc, char **argv) return 1; } - if (mbus_context_set_option(handle, MBUS_OPTION_MAX_RETRY, retries) == -1) + if (mbus_context_set_option(handle, MBUS_OPTION_MAX_SEARCH_RETRY, retries) == -1) { fprintf(stderr,"Failed to set retry count\n"); return 1;