gnrc/gomach : Move GNRC_GOMACH_BCAST_INTERVAL_US to 'CONFIG_'

This commit is contained in:
Akshai M 2020-05-19 18:01:11 +05:30
parent 6aa0418da4
commit 9b7b3fef42
2 changed files with 3 additions and 3 deletions

View File

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

View File

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