From 348a8cb45a341a23290bc27c39e0c2bb7f2ea89e Mon Sep 17 00:00:00 2001 From: Akshai M Date: Fri, 16 Oct 2020 13:26:42 +0530 Subject: [PATCH] net/emcute : Move 'EMCUTE_N_RETRY' to 'CONFIG_' --- sys/include/net/emcute.h | 4 ++-- sys/net/application_layer/emcute/emcute.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/include/net/emcute.h b/sys/include/net/emcute.h index 6dd6ad8ef8..6dc278aabb 100644 --- a/sys/include/net/emcute.h +++ b/sys/include/net/emcute.h @@ -145,13 +145,13 @@ extern "C" { #define CONFIG_EMCUTE_T_RETRY (15U) /* -> 15 sec */ #endif -#ifndef EMCUTE_N_RETRY +#ifndef CONFIG_EMCUTE_N_RETRY /** * @brief Number of retries when sending packets * * For the default value, see spec v1.2, section 7.2 -> N_RETRY: 3-5 */ -#define EMCUTE_N_RETRY (3U) +#define CONFIG_EMCUTE_N_RETRY (3U) #endif /** diff --git a/sys/net/application_layer/emcute/emcute.c b/sys/net/application_layer/emcute/emcute.c index afabc113c2..5ec1d55b2d 100644 --- a/sys/net/application_layer/emcute/emcute.c +++ b/sys/net/application_layer/emcute/emcute.c @@ -103,7 +103,7 @@ static int syncsend(uint8_t resp, size_t len, bool unlock) * remove was called */ thread_flags_clear(TFLAGS_ANY); - for (unsigned retries = 0; retries <= EMCUTE_N_RETRY; retries++) { + for (unsigned retries = 0; retries <= CONFIG_EMCUTE_N_RETRY; retries++) { DEBUG("[emcute] syncsend: sending round %i\n", retries); sock_udp_send(&sock, tbuf, len, &gateway);