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

gnrc/gomach : Move GNRC_GOMACH_RX_DUPCHK_UNIT_LIFE to 'CONFIG_'

This commit is contained in:
Akshai M 2020-05-19 18:23:28 +05:30
parent a8cad3715d
commit 3274a6b83e
2 changed files with 3 additions and 3 deletions

View File

@ -291,8 +291,8 @@ extern "C" {
* check-duplicate-packet data unit's life time in cycle count. Once expired,
* the related data unit will be reset. This macro maybe removed in the future.
*/
#ifndef GNRC_GOMACH_RX_DUPCHK_UNIT_LIFE
#define GNRC_GOMACH_RX_DUPCHK_UNIT_LIFE (30U)
#ifndef CONFIG_GNRC_GOMACH_RX_DUPCHK_UNIT_LIFE
#define CONFIG_GNRC_GOMACH_RX_DUPCHK_UNIT_LIFE (30U)
#endif
/**

View File

@ -1464,7 +1464,7 @@ static void gomach_listen_init(gnrc_netif_t *netif)
if (netif->mac.rx.check_dup_pkt.last_nodes[i].node_addr.len != 0) {
netif->mac.rx.check_dup_pkt.last_nodes[i].life_cycle++;
if (netif->mac.rx.check_dup_pkt.last_nodes[i].life_cycle >=
GNRC_GOMACH_RX_DUPCHK_UNIT_LIFE) {
CONFIG_GNRC_GOMACH_RX_DUPCHK_UNIT_LIFE) {
netif->mac.rx.check_dup_pkt.last_nodes[i].node_addr.len = 0;
netif->mac.rx.check_dup_pkt.last_nodes[i].node_addr.addr[0] = 0;
netif->mac.rx.check_dup_pkt.last_nodes[i].node_addr.addr[1] = 0;