gnrc/gomach : Move GNRC_GOMACH_BCAST_INTERVAL_US to 'CONFIG_'
This commit is contained in:
parent
6aa0418da4
commit
9b7b3fef42
@ -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
|
||||
|
||||
/**
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user