1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 22:13:52 +01:00

net/emcute : Move 'EMCUTE_N_RETRY' to 'CONFIG_'

This commit is contained in:
Akshai M 2020-10-16 13:26:42 +05:30 committed by Akshai M
parent 1840310459
commit 348a8cb45a
2 changed files with 3 additions and 3 deletions

View File

@ -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
/**

View File

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