diff --git a/sys/include/net/gnrc/gomach/gomach.h b/sys/include/net/gnrc/gomach/gomach.h index 9bd53f4dc4..667a1de47a 100644 --- a/sys/include/net/gnrc/gomach/gomach.h +++ b/sys/include/net/gnrc/gomach/gomach.h @@ -222,8 +222,8 @@ extern "C" { * neighbors will get a copy. This macro defines the time interval between * ending two consecutive broadcast copies. */ -#ifndef GNRC_GOMACH_BCAST_INTERVAL_US -#define GNRC_GOMACH_BCAST_INTERVAL_US (1U * US_PER_MS) +#ifndef CONFIG_GNRC_GOMACH_BCAST_INTERVAL_US +#define CONFIG_GNRC_GOMACH_BCAST_INTERVAL_US (1U * US_PER_MS) #endif /** diff --git a/sys/net/gnrc/link_layer/gomach/gomach.c b/sys/net/gnrc/link_layer/gomach/gomach.c index b9345fcecd..3b80ff4bfc 100644 --- a/sys/net/gnrc/link_layer/gomach/gomach.c +++ b/sys/net/gnrc/link_layer/gomach/gomach.c @@ -299,7 +299,7 @@ static void gomach_wait_bcast_tx_finish(gnrc_netif_t *netif) { if (gnrc_gomach_get_tx_finish(netif)) { gnrc_gomach_set_timeout(netif, GNRC_GOMACH_TIMEOUT_BCAST_INTERVAL, - GNRC_GOMACH_BCAST_INTERVAL_US); + CONFIG_GNRC_GOMACH_BCAST_INTERVAL_US); netif->mac.tx.bcast_state = GNRC_GOMACH_BCAST_WAIT_NEXT_TX; gnrc_gomach_set_update(netif, false); }