diff --git a/examples/cord_epsim/main.c b/examples/cord_epsim/main.c index 03ffa95776..a55d7cf4ab 100644 --- a/examples/cord_epsim/main.c +++ b/examples/cord_epsim/main.c @@ -140,7 +140,7 @@ int main(void) else if (res == CORD_EPSIM_ERROR) { puts("error: unable to trigger simple registration process"); } - xtimer_sleep(CORD_UPDATE_INTERVAL); + xtimer_sleep(CONFIG_CORD_UPDATE_INTERVAL); } return 0; diff --git a/sys/include/net/cord/config.h b/sys/include/net/cord/config.h index 25cb2ea884..dd855f9a22 100644 --- a/sys/include/net/cord/config.h +++ b/sys/include/net/cord/config.h @@ -43,8 +43,8 @@ extern "C" { /** * @brief Default client update interval (default is 3/4 the lifetime) */ -#ifndef CORD_UPDATE_INTERVAL -#define CORD_UPDATE_INTERVAL ((CONFIG_CORD_LT / 4) * 3) +#ifndef CONFIG_CORD_UPDATE_INTERVAL +#define CONFIG_CORD_UPDATE_INTERVAL ((CONFIG_CORD_LT / 4) * 3) #endif /** diff --git a/sys/net/application_layer/cord/ep/cord_ep_standalone.c b/sys/net/application_layer/cord/ep/cord_ep_standalone.c index 1031453c9f..1d38f9d78c 100644 --- a/sys/net/application_layer/cord/ep/cord_ep_standalone.c +++ b/sys/net/application_layer/cord/ep/cord_ep_standalone.c @@ -38,7 +38,7 @@ #define UPDATE_TIMEOUT (0xe537) -#define TIMEOUT_US ((uint64_t)(CORD_UPDATE_INTERVAL * US_PER_SEC)) +#define TIMEOUT_US ((uint64_t)(CONFIG_CORD_UPDATE_INTERVAL * US_PER_SEC)) static char _stack[STACKSIZE];