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