mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2026-01-01 01:41:18 +01:00
gnrc/gomach : Move GNRC_GOMACH_CP_EXTEND_THRESHOLD to 'CONFIG_'
This commit is contained in:
parent
62a3be9eee
commit
a8cad3715d
@ -275,11 +275,11 @@ extern "C" {
|
||||
*
|
||||
* In GoMacH, the WP period of a receiver will be extended upon each successful
|
||||
* packet reception (except receiving broadcast or preamble packet) to receive
|
||||
* more potentialincoming packets. This macro defines the maximum WP period
|
||||
* more potential incoming packets. This macro defines the maximum WP period
|
||||
* extension number allowed in GoMacH.
|
||||
*/
|
||||
#ifndef GNRC_GOMACH_CP_EXTEND_THRESHOLD
|
||||
#define GNRC_GOMACH_CP_EXTEND_THRESHOLD (5U)
|
||||
#ifndef CONFIG_GNRC_GOMACH_CP_EXTEND_THRESHOLD
|
||||
#define CONFIG_GNRC_GOMACH_CP_EXTEND_THRESHOLD (5U)
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
@ -1536,7 +1536,7 @@ static void _cp_listen_end(gnrc_netif_t *netif)
|
||||
{
|
||||
/* If we found ongoing reception, wait for reception complete. */
|
||||
if ((gnrc_gomach_get_netdev_state(netif) == NETOPT_STATE_RX) &&
|
||||
(netif->mac.prot.gomach.cp_extend_count < GNRC_GOMACH_CP_EXTEND_THRESHOLD)) {
|
||||
(netif->mac.prot.gomach.cp_extend_count < CONFIG_GNRC_GOMACH_CP_EXTEND_THRESHOLD)) {
|
||||
netif->mac.prot.gomach.cp_extend_count++;
|
||||
gnrc_gomach_clear_timeout(netif, GNRC_GOMACH_TIMEOUT_WAIT_RX_END);
|
||||
gnrc_gomach_set_timeout(netif, GNRC_GOMACH_TIMEOUT_WAIT_RX_END,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user